When I tried to use FASTx it is asking for quality score.
Seq Reads Trimming
I have sequencing data which I want to trim from 3' end to retain first 20 bp not on based on quality. Most of the tools ask for qulaity and and then trim. Is there any way I can just trim reads to keep first 20 bases. This data is for matching bar codes with standard format which is embedded in first 20 bp.
Thanks
• 5,367 views
•
link
2 answers
Fastx has a trimmer option, which is doing exactly that.
FASTA/Q Trimmer
$ fastx_trimmer -h
usage: fastx_trimmer [-h] [-f N] [-l N] [-z] [-v] [-i INFILE] [-o OUTFILE]
version 0.0.6
[-h] = This helpful help screen.
[-f N] = First base to keep. Default is 1 (=first base).
[-l N] = Last base to keep. Default is entire read.
[-z] = Compress output with GZIP.
[-i INFILE] = FASTA/Q input file. default is STDIN.
[-o OUTFILE] = FASTA/Q output file. default is STDOUT.
• 241 views
•
link
• 0 views
•
link
You can use a simple perl script which can do this job for you. You can use the substr() function to extract the first 20 base pairs alone..
For example you can say
$seq1= substr($seq, 20);
Hope this would help you!!
• 0 views
•
link
Log in to answer this question.
Possible duplicate: Trimming a fastq file representing RNA-seq data. Seqtk works with fasta and the awk oneliner also works.