Length of sequence and qualities differ

61 views
Skip to first unread message

王程扬

unread,
Nov 28, 2020, 12:50:25 AM11/28/20
to CTK User Group
Dear Professor Zhang,

Happy Thanksgiving! I am writing to ask how to deal with error "Length of sequence and qualities differ" when I run cutadapt on reformatted eCLIP Read2? Below is the modified fastq as you suggested in https://zhanglab.c2b2.columbia.edu/index.php/ECLIP_data_analysis_using_CTK

@SN1001:449:HGTN3ADXX:1:1101:1046:1930 2:N:0:2

CCGCCATCCCCGAATCCGGAGTGGCGGAGATGGGCGCCGCGAGGCGTCCCG

+

FFFFFFFFIIFFIIFFFFIIII<BBFFFI7BBFB<B'07'0077''

The length of qualities indeed 5 bases less than the sequence... 

Thank you! 



for f in HepG2.RBFOX2.rep1.R2 HepG2.RBFOX2.rep2.R2 HepG2.RBFOX2_mock_input.rep1.R2
do
cutadapt  --match-read-wildcards --times 1 -e 0.1 -O 1 --quality-cutoff 5 -m 20 \
-a ATTGCTTAGATCGGAAGAGCGTCGTGT -a ACAAGCCAGATCGGAAGAGCGTCGTGT -a AACTTGTAGATCGGAAGAGCGTCGTGT -a AGGACCAAGATCGGAAGAGCGTCGTGT \
-a ANNNNGGTCATAGATCGGAAGAGCGTCGTGT -a ANNNNACAGGAAGATCGGAAGAGCGTCGTGT -a ANNNNAAGCTGAGATCGGAAGAGCGTCGTGT -a ANNNNGTATCCAGATCGGAAGAGCGTCGTGT \
-o $f.trim.fastq.gz ../fastq/$f.reformat.fastq > $f.cutadpt.log
done

Chaolin Zhang

unread,
Nov 28, 2020, 9:29:41 AM11/28/20
to 王程扬, CTK User Group
The description here is a bit inaccurate here - Thanks for catching this!  

When you add the barcode to the sequence line, you will also need to modify the quality line accordingly (you can add some artificial scores here, e.g., 5 x I here).

I have fixed our documentation now.

Chaolin



--
You received this message because you are subscribed to the Google Groups "CTK User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ctk-user-grou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ctk-user-group/d4a532f3-86dc-4b94-80aa-9f398cb89269n%40googlegroups.com.

王程扬

unread,
Nov 28, 2020, 7:21:11 PM11/28/20
to Chaolin Zhang, CTK User Group
Hi Professor Zhang,

Thank you very much for your prompt reply! 

Best,
Chengyang
Reply all
Reply to author
Forward
0 new messages