Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One of the first things you want to know about your annotation file is what gene features it contains. Here's how to find that: (Read more about what's going on here at Piping a histogram.)

Code Block
languagebash
titleCreate a histogram of all the feature types in a GFF
cd $SCRATCH/core_ngs/bedtools
cat sacCer_R64-1-1_20110208.gff | grep -v '^#' | cut -f 3 | sort | uniq -c | sort -k1,1nr | more

...

Finally, the 8 re-ordered attributes are:

Code Block
titleConverted Re-ordered BED attributes
 1. chrom  2. start               3. end             4. ID      5. length  6. strand
 7. gene   8. orf_classification

...