Question: empty fastq files created by docker bcl2fastq2 v2.20 OSX
gravatar for akh22
5 weeks ago by
United States
akh2240 wrote:


I installed a following docker image,

    REPOSITORY               TAG            IMAGE ID            CREATED             SIZE
zymoresearch/bcl2fastq   latest           037f216c2523        13 months ago        117MB

and run a following command;

docker run -d --name bcl2fastq -v /Volumes/Aura2/bcl_NU/170720_NB501488_0132_AH5V32BGX3:/mnt/run -v /Volumes/Aura2/output:/mnt/out zymoresearch/bcl2fastq:2.20 -R /mnt/run -o /mnt/out/Data/Intensities/BaseCalls/Alignment_1  --barcode-mismatches 0 --with-failed-reads --no-lane-splitting -p 24

This generates fastq files but they are all 0Ks. I looked at the log file but nothing stands out as a major error. Since I am really getting stuck trouble shooting this issue, I'd really appreciate any inputs and suggestions.

ADD COMMENTlink written 5 weeks ago by akh2240

Are you not getting any fastq files? e.g. if the data is not being demultiplexed then you should get files called Undetermined * R1 *.fastq.gz and Undetermined * R2 *.fastq.gz.

You also don't seem to be providing a Samplesheet.csv file which is what denotes sample_ID --> Index associations. Without that there is no way to demux the data.


That is a bad option to choose. Those reads fail initial filters for a reason and should be left alone.

ADD REPLYlink modified 5 weeks ago • written 5 weeks ago by genomax91k

@genomax, It did generate all the fastqs for entires in the samplesheet.csv except one


I don't know where this Undetermined_S0_R1_001.fastq.gz came from, which was not in the samplesheet.csv. I forgot to mention that these are single reads.

Also, I did try run this without --with-failed-reads and --barcode-mismatches 0 but did not make any difference, and a following is the samplesheet.csv used in the run.

FileVersion 1                               
LibraryPrepKit  TruSeqHT                                
ContainerType   Plate96                             
ContainerID FoodAlelrgy_Skin_7/12/2017                              

Sample_ID   Sample_Name Species Sample_Project  Sample_Well NucleicAcid i7_Index_ID index   i5_Index_ID index2
PI0001  1   Musmusculus mouse   A01 RNA D701    ATTACTCG    D501    TATAGCCT
PI0002  2   Musmusculus mouse   B01 RNA D701    ATTACTCG    D502    ATAGAGGC
PI0003  3   Musmusculus mouse   C01 RNA D701    ATTACTCG    D503    CCTATCCT
PI0004  4   Musmusculus mouse   D01 RNA D701    ATTACTCG    D504    GGCTCTGA
PI0005  8   Musmusculus mouse   E01 RNA D701    ATTACTCG    D505    AGGCGAAG
PI0006  12  Musmusculus mouse   F01 RNA D701    ATTACTCG    D506    TAATCTTA
PI0007  15  Musmusculus mouse   G01 RNA D701    ATTACTCG    D507    CAGGACGT
PI0008  16  Musmusculus mouse   H01 RNA D701    ATTACTCG    D508    GTACTGAC
PI0009  17  Musmusculus mouse   A02 RNA D702    TCCGGAGA    D501    TATAGCCT
PI0010  18  Musmusculus mouse   B02 RNA D702    TCCGGAGA    D502    ATAGAGGC
PI0011  20  Musmusculus mouse   C02 RNA D702    TCCGGAGA    D503    CCTATCCT
PI0012  22  Musmusculus mouse   D02 RNA D702    TCCGGAGA    D504    GGCTCTGA
PI0013  23  Musmusculus mouse   E02 RNA D702    TCCGGAGA    D505    AGGCGAAG
PI0014  26  Musmusculus mouse   F02 RNA D702    TCCGGAGA    D506    TAATCTTA
PI0015  28  Musmusculus mouse   G02 RNA D702    TCCGGAGA    D507    CAGGACGT
PI0016  29  Musmusculus mouse   H02 RNA D702    TCCGGAGA    D508    GTACTGAC
PI0017  30  Musmusculus mouse   A03 RNA D703    CGCTCATT    D501    TATAGCCT
PI0018  31  Musmusculus mouse   B03 RNA D703    CGCTCATT    D502    ATAGAGGC
PI0019  32  Musmusculus mouse   C03 RNA D703    CGCTCATT    D503    CCTATCCT
PI0020  33  Musmusculus mouse   D03 RNA D703    CGCTCATT    D504    GGCTCTGA
PI0021  34  Musmusculus mouse   E03 RNA D703    CGCTCATT    D505    AGGCGAAG
PI0022  35  Musmusculus mouse   F03 RNA D703    CGCTCATT    D506    TAATCTTA
PI0023  36  Musmusculus mouse   G03 RNA D703    CGCTCATT    D507    CAGGACGT
PI0024  38  Musmusculus mouse   H03 RNA D703    CGCTCATT    D508    GTACTGAC
PI0025  39  Musmusculus mouse   A04 RNA D704    TCTCGCGC    D501    TATAGCCT
PI0026  40  Musmusculus mouse   B04 RNA D704    AGCGATAG    D502    ATAGAGGC
ADD REPLYlink modified 5 weeks ago by genomax91k • written 5 weeks ago by akh2240

It did generate all the fastqs for entires in the samplesheet.csv except one

Those are all zero byte files. Any reads that can't be classified using indexes provided in SampleSheet.csv are put into Undetermined* file. You can look in that file to see what indexes ended up there. Don't be surprised to see a smattering of indexes you don't expect. This is normal, as long as they are < 5% of reads. Use the code I have here: C: Demultiplexing reads with index present in the labels

I think easiest mistake is providing index sequence as reverse-complement. Once you compare results from my code and indexes you have, it should be easy to figure out.

I forgot to mention that these are single reads.

Why are you using a SampleSheet for 2D indexes then? The file does not follow Illumina's samplesheet format either.

ADD REPLYlink modified 5 weeks ago • written 5 weeks ago by genomax91k

I wish I could use you script but the "Underdetermined" file is also 0K. Also, single reads were done with dual index. So the entry of the second index in the samplesheet is wrong in this case ?

ADD REPLYlink written 5 weeks ago by akh2240

My apologies. Single reads with dual indexes are certainly fine. I should have considered that.

Note: Depending on which sequencer this run as done, you may need to reverse complement the second index.

Can you create your samplesheet in this format. Save as comma separated values (.csv) file.

Investigator Name,test,,,,,,,,
Experiment Name,EXPT_NAME,,,,,,,,
Application,FASTQ Only,,,,,,,,

If you don't have multiple lanes then you will have entries for lane 1. If the pool ran on multiple lanes then you will need to create multiple lane entries (column 1).

Also make sure you run the bcl2fastq2 command with these options

bcl2fastq -R /path_to_flow_cell_folder -o /path_to_flow_cell_folder/Unaligned --sample-sheet SampleSheet.csv --barcode-mismatches 0 --no-lane-splitting

If you have more than more core available then you could also add -r N -p N -w N to the command. Three N's added up should not be more than cores you have available.

ADD REPLYlink modified 5 weeks ago • written 5 weeks ago by genomax91k

I modified the samplesheet.csv as follows;

Lane    Sample_ID   Sample_Name Sample_Plate    Sample_Well i7_Index_ID index   i5_Index_ID index2  Sample_Project  Description
1   PI0001  Sample_1        A01 D701    ATTACTCG    D501    TATAGCCT    Mouse   
1   PI0002  Sample_2        B01 D701    ATTACTCG    D502    ATAGAGGC    Mouse   
1   PI0003  Sample_3        C01 D701    ATTACTCG    D503    CCTATCCT    Mouse   
1   PI0004  Sample_4        D01 D701    ATTACTCG    D504    GGCTCTGA    Mouse   
1   PI0005  Sample_5        E01 D701    ATTACTCG    D505    AGGCGAAG    Mouse   
1   PI0006  Sample_6        F01 D701    ATTACTCG    D506    TAATCTTA    Mouse   
1   PI0007  Sample_7        G01 D701    ATTACTCG    D507    CAGGACGT    Mouse   
1   PI0008  Sample_8        H01 D701    ATTACTCG    D508    GTACTGAC    Mouse   
1   PI0009  Sample_9        A02 D702    TCCGGAGA    D501    TATAGCCT    Mouse   
1   PI0010  Sample_10       B02 D702    TCCGGAGA    D502    ATAGAGGC    Mouse   
1   PI0011  Sample_11       C02 D702    TCCGGAGA    D503    CCTATCCT    Mouse   
1   PI0012  Sample_12       D02 D702    TCCGGAGA    D504    GGCTCTGA    Mouse   
1   PI0013  Sample_13       E02 D702    TCCGGAGA    D505    AGGCGAAG    Mouse   
1   PI0014  Sample_14       F02 D702    TCCGGAGA    D506    TAATCTTA    Mouse   
1   PI0015  Sample_15       G02 D702    TCCGGAGA    D507    CAGGACGT    Mouse   
1   PI0016  Sample_16       H02 D702    TCCGGAGA    D508    GTACTGAC    Mouse   
1   PI0017  Sample_17       A03 D703    CGCTCATT    D501    TATAGCCT    Mouse   
1   PI0018  Sample_18       B03 D703    CGCTCATT    D502    ATAGAGGC    Mouse   
1   PI0019  Sample_19       C03 D703    CGCTCATT    D503    CCTATCCT    Mouse   
1   PI0020  Sample_20       D03 D703    CGCTCATT    D504    GGCTCTGA    Mouse   
1   PI0021  Sample_21       E03 D703    CGCTCATT    D505    AGGCGAAG    Mouse   
1   PI0022  Sample_22       F03 D703    CGCTCATT    D506    TAATCTTA    Mouse   
1   PI0023  Sample_23       G03 D703    CGCTCATT    D507    CAGGACGT    Mouse   
1   PI0024  Sample_24       H03 D703    CGCTCATT    D508    GTACTGAC    Mouse   
1   PI0025  Sample_25       A04 D704    TCTCGCGC    D501    TATAGCCT    Mouse   
1   PI0026  Sample_26       B04 D704    AGCGATAG    D502    ATAGAGGC    Mouse

Again, it generated 26 fastqs but they are all empty. The bcl2fastq log file is found here bcl2fastq log

ADD REPLYlink written 5 weeks ago by akh2240

Do you actually have access to the complete flowcell data folder? For bcl2fastq2 to work that is a requirement. Looking at the log, it looks to me that you don't have the full FC folder. Right after the fastq files are created is where the program should start reading the bcl files and converting them to sequence. Your log ends at the point. Are there any errors in any other log?

ADD REPLYlink modified 5 weeks ago • written 5 weeks ago by genomax91k

The input folder appears to be intact, containing everything original except the samplesheet.csv which I had to create based on a sample submission sheet. I think the issue may be incorrect samplesheet entries, or some corrupted files which will generate errors, but I dont se them. At this point, I have to throw the towel

ADD REPLYlink written 4 weeks ago by akh2240
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1950 users visited in the last hour