This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Length of sequences in FASTQ file

Hi there,

I wanted to know the minimum, maximum and the median length of all sequences in my query fasta file. Is there any way to find out this information.

Thanks in advance.

fastq

Your post name and question are different!

1 answer

A simple google search for "length of sequences in fasta file" retrieves several solutions for your question. Including a Code Golf: Mean Length Of Fasta Sequences in this very site.

Choose your coding weapon and have fun.

I'll add that for the min/max numbers, even awk would suffice (don't try that for the median though, it wouldn't be pretty).

As much I like awk, it is never pretty :)

Log in to answer this question.