broadinstitute / CODECsuite

analysis pipeline for CODEC data
Other
9 stars 6 forks source link

SampleSheet issue #16

Closed waalkes closed 10 months ago

waalkes commented 11 months ago

I am trying to demux as directed. The documentation tells me the sample sheet should be a csv(comma separated values) file:

"The first step is demultiplexing and it requires a sample sheet in csv format for each lane which looks the following."

I tried that and it didn't work and the error says the sample sheet should be tab delimited so I tried that and it didn't work either.

Can you specify what the format of the sample sheet should be?

tron:/mnt//BaseCalls $ cat /mnt/BaseCalls/SampleSheet.csv SampleName,IndexBarcode1,IndexBarcode2 lambda_1,CTTGAACGGACTGTCCAC,CACCGAGCGTTAGACTAC lambda_2,GAGCCTACTCAGTCAACG,GTGTCGAACACTTGACGG lambda_3,GCTTGTAAGGCAGGTTAG,CTGATCTTCAGCTGACTG lambda_4,CAAGCGTCTTACATGGTC,GAATCTGAGGCACTGTAC tron:/mnt/BaseCalls $ /mnt/programs/CODECsuite/build/codec demux -1 CODEC-4samples_S1_L001_R1_001.fastq.gz -2 CODEC-4samples_S1_L001_R2_001.fastq.gz -p SampleSheet.csv -o demux_out terminate called after throwing an instance of 'std::runtime_error' what(): Invalid index file Format required as three tab-delimited columns with header SampleName IndexBarcode1 IndexBarcode2 Aborted (core dumped) tron:/mnt/BaseCalls $ cat SampleSheet_tab.csv SampleName IndexBarcode1 IndexBarcode2 lambda_1 CTTGAACGGACTGTCCAC CACCGAGCGTTAGACTAC lambda_2 GAGCCTACTCAGTCAACG GTGTCGAACACTTGACGG lambda_3 GCTTGTAAGGCAGGTTAG CTGATCTTCAGCTGACTG lambda_4 CAAGCGTCTTACATGGTC GAATCTGAGGCACTGTAC tron:/mnt/BaseCalls $ /mnt/programs/CODECsuite/build/codec demux -1 CODEC-4samples_S1_L001_R1_001.fastq.gz -2 CODEC-4samples_S1_L001_R2_001.fastq.gz -p SampleSheet_tab.csv -o demux_out terminate called after throwing an instance of 'std::runtime_error' what(): Invalid index file Format required as three tab-delimited columns with header SampleName IndexBarcode1 IndexBarcode2 Aborted (core dumped)

Thanks

ruolin commented 10 months ago

Hi @waalkes sorry about the confusion caused by the error message. The website is correct. It requires a csv file not tsv file. I will change the error msg. And meanwhile, you first file pasted in the chat look okay to me. Does it contain any hidden characters? Can you pass me the file so I can check for you. you can email me at ruolin@broadinstitute.org

waalkes commented 10 months ago

Thanks. I did look at it for hidden characters in vi but I didn't see any. Here it is. Note we used 4 of the barcodes from your paper which the 3rd and 4th I believe were different than the barcodes you list on the website. samplesheet is attached. SampleSheet.csv

ruolin commented 10 months ago

I tested your SampleSheet.csv and it did run through. You mentioned in your other thread that you built a version in 18.04 and ran it on 22.04. It shouldn't give this problem but could you test your binary back on 18.04?

ruolin commented 10 months ago

On the other note, The barcodes (3rd and 4th) on the websites shifted 1 base to the right compared to the one in the paper. This is to ensure the universal trimming options for all barcodes with option codec trim -u 3 -f 2. This means the first three bps are UMI and then next two bps are discarded.

waalkes commented 10 months ago

That worked. Thanks.

waalkes commented 10 months ago

closed

waalkes commented 10 months ago

closed

jmd5596 commented 6 months ago

Hello, I am having a similar issue when trying to demultiplex. This is the error message: terminate called after throwing an instance of 'std::runtime_error' what(): Invalid index file /var/spool/slurmd/job1371685/slurm_script: line 37: 7752 Aborted /storage/goodell/home/u244950/CODECsuite/build/codec demux --q1 "${JDIRECTORY_PATH}/fastq/Undetermined_S0_L001_R1_001.fastq.gz" --q2 "${JDIRECTORY_PATH}/fastq/Undetermined_S0_L001_R2_001.fastq.gz" --library_param "${JDIRECTORY_PATH}/clonewars2.csv" --outprefix demux_outprefix

I've included all the modules I used to compile the CODEC suite in the bash script but keep getting the same error. Any advice?