Length of sequences in FASTQ file
1
0
Entering edit mode
9.7 years ago
win ▴ 990

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 • 4.3k views
ADD COMMENT
0
Entering edit mode

Your post name and question are different!

ADD REPLY
2
Entering edit mode
9.7 years ago
A. Domingues ★ 2.7k

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.

ADD COMMENT
0
Entering edit mode

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).

ADD REPLY
1
Entering edit mode
As much I like awk, it is never pretty :)
ADD REPLY

Login before adding your answer.

Traffic: 1313 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