Command for counting gene model after each round of MAKER
1
0
Entering edit mode
5.0 years ago
Elizabeth ▴ 30

Hello, I am looking for a command that can tell me the number of gene models after each round of MAKER. I have tried the following:

less Maker2.all.gff |awk '$3=="mRNA"' |grep "mRNA-1" |awk '{print $5-$4}' |summary.sh

cat <roundN.full.gff> | awk '{ if ($3 == "gene") print $0 }' | awk '{ sum += ($5 - $4) } END { print NR, sum / NR }'

But, my terminal seems to hang, every time I run the command. Has anyone encountered a similar problem ?

gene model maker count • 1.3k views
ADD COMMENT
0
Entering edit mode

What does summary.sh ?

ADD REPLY
1
Entering edit mode
5.0 years ago
ringourquia ▴ 20

The "fathom -gene-stats" command used in the path to generate the SNAP learning-file displays several stats of your gff including the number of genes. Otherwise, I use:

cut -f3 your_merged_gff.gff | grep "gene" | wc -l
ADD COMMENT
1
Entering edit mode

Thank you. It works.

ADD REPLY

Login before adding your answer.

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