GeneLab_Data_Processing icon indicating copy to clipboard operation
GeneLab_Data_Processing copied to clipboard

[BulkRNASeq] Issues with numeric sample names

Open cyouh95 opened this issue 1 year ago • 0 comments

Description

Numeric sample names cause below error in the following line:

TypeError: unsupported operand type(s) for /: 'PosixPath' and 'int'

https://github.com/nasa/GeneLab_Data_Processing/blob/90d6bb5d6a20d817fa17ac5cb0763d4f8f75966b/RNAseq/Workflow_Documentation/NF_RCP-F/workflow_code/bin/sort_into_subdirectories_by_sample.py#L26

Solution

Convert numeric sample names to string:

dest = Path(TO) / str(sample) / file.name 

cyouh95 avatar Aug 19 '24 19:08 cyouh95