nasa / GeneLab_Data_Processing

65 stars 42 forks source link

[BulkRNASeq] Issues with numeric sample names #111

Open cyouh95 opened 2 months ago

cyouh95 commented 2 months ago

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