Is there a tool that will tell me how "complex" (e.g., number of unique k-mers) are in a fastq file?
0
0
Entering edit mode
2.8 years ago
O.rka ▴ 740

I have one sample that is WAY different than all the others and I want to find out why. The first thing I want to do is to see if it is more or less complex than the other samples.

Are there any tools to do this?

genomics rnaseq fastq • 1.3k views
ADD COMMENT
1
Entering edit mode

kmergenie for k-mers. How about GC% calculation or nucleotide distribution plots?

ADD REPLY
0
Entering edit mode

I was looking into this but it doesn't work on fastq nor does it work with stdin. I have a bunch of fastq files that are gzipped and I really don't have the storage to decompress and convert to fasta. I know I could run it one at a time and delete as I go but that seems like a roundabout way. There's gotta be another option. I've tried installing gerbil but I can't get the dependencies to work. I use conda for all of my environments and most of the newer tools don't have conda recipes so getting their dependencies to work is not trivial.

ADD REPLY
0
Entering edit mode

Copy/pasted from kmergenie readme (http://kmergenie.bx.psu.edu/README):

reads_file is either a single FASTA, FASTQ, FASTA.gz, FASTQ.gz file or a list of file names, one per line. For example:

Kmergenie also takes a list (of files). GC% can be calculated by tools such as seqkit for each file or bunch of files. Sourmash can be run on fastq.gz files.(https://sourmash.readthedocs.io/en/latest/tutorial-basic.html)

ADD REPLY
0
Entering edit mode

Weird?! I had an error when I ran it. I’ll give it another try. Maybe it was an outdated version. Thank you

ADD REPLY
1
Entering edit mode

look at the compression of the fastq ? the less the fastq is complex, the more it will be compressed ? :-P

gunzip -c sample1.fastq.gz | paste - - - - | cut -f 2 | sort -T . | gzip --best | wc -c

ADD REPLY
0
Entering edit mode

Sourmash can compare multiple genomes/reads using FracMinHash and build a tree. It's kind of clustering, but it may not tell why one is different from others.

For RNAseq, why not continue the downstream analysis to see whether the difference comes from the abnormal expression of certain transcripts.

ADD REPLY

Login before adding your answer.

Traffic: 1845 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6