stringtie icon indicating copy to clipboard operation
stringtie copied to clipboard

prepDE.py Error: Text file with sample ID and path invalid ()

Open play131937 opened this issue 5 years ago • 3 comments

Hi,

I was trying to extract count matrix by prep.DE, but I was getting the error.

Error: Text file with sample ID and path invalid ()  

This is the command I used,

$ python prepDE.py -i sample_lst_2M.txt -g ./gene_count_matrix_2M.csv -t ./transcript_count_matrix_2M.csv

This is how the sample_lst_2M.txt looks like.

Ctrl1	/home/IrisC/Hisat2/Stringtie/S0311-4h-c_L1/Ctrl1.gtf
Ctrl2	/home/IrisC/Hisat2/Stringtie/S0316-4h-c_L1/Ctrl2.gtf
2M1B1	/home/IrisC/Hisat2/Stringtie/S0311-4h-2_L1/2M1B1.gtf
2M1B2	/home/IrisC/Hisat2/Stringtie/S0316-4h-2_L1/2M1B2.gtf

The directory structure:

$ tree -L 3 /home/IrisC/Hisat2/Stringtie/

Stringtie/
├── DE
│   └── sample_lst_2M.txt
├── S0311-4h-2_L1
│   ├── 2M1B1.gtf
│   ├── e2t.ctab
│   ├── e_data.ctab
│   ├── i2t.ctab
│   ├── i_data.ctab
│   ├── S0311-4h-2_L1_gene_abund.tab
│   └── t_data.ctab
├── S0311-4h-c_L1
│   ├── Ctrl1.gtf
│   ├── e2t.ctab
│   ├── e_data.ctab
│   ├── i2t.ctab
│   ├── i_data.ctab
│   ├── S0311-4h-c_L1_gene_abund.tab
│   └── t_data.ctab
├── S0316-4h-2_L1
│   ├── 2M1B2.gtf
│   ├── e2t.ctab
│   ├── e_data.ctab
│   ├── i2t.ctab
│   ├── i_data.ctab
│   ├── S0316-4h-2_L1_gene_abund.tab
│   └── t_data.ctab
├── S0316-4h-c_L1
│   ├── Ctrl2.gtf
│   ├── e2t.ctab
│   ├── e_data.ctab
│   ├── i2t.ctab
│   ├── i_data.ctab
│   ├── S0316-4h-c_L1_gene_abund.tab
│   └── t_data.ctab
└── Read.md

I have tried executing prepDE.py by the following command but it didn't fix the error.

$ python2.7 prepDE.py -i sample_lst_2M.txt -g ./gene_count_matrix_2M.csv -t ./transcript_count_matrix_2M.csv

Does anyone know how to fix this? Any suggestion would be appreciated.

Thanks, Iris

play131937 avatar Oct 07 '20 08:10 play131937

Hi, I faced a similar issue. I found that there was an empty line at the bottom of the .txt file. Removing that empty line fixed my problem. You can check your txt file.

sumageb avatar Nov 29 '20 03:11 sumageb

Hi, I faced a similar issue. I found that there was an empty line at the bottom of the .txt file. Removing that empty line fixed my problem. You can check your txt file.

Yes, I had the same problem. Thanks very much!!!

Zlingsen avatar Jun 08 '21 14:06 Zlingsen

I also have same problem.

pijush1285 avatar Jun 30 '21 11:06 pijush1285