grouping the genes based on the length of coding sequence
1
0
Entering edit mode
7.8 years ago
ashkan ▴ 160

I have a list of genes with coding sequence length. I want to group them into 10 groups. do you know what the best way is to do so?

sequencing • 1.2k views
ADD COMMENT
1
Entering edit mode
7.8 years ago

if your data is:

gene1(tab)length
gene2(tab)length
(...)
geneN(tab)length

I would try:

sort -t $'\t' -k2,2n data.tsv | split -l ` awk 'END {print  NR/10}' data.tsv `  - OUT
ADD COMMENT
1
Entering edit mode

Pierre always give us shell magic :)

ADD REPLY

Login before adding your answer.

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