BED2GFF3(1p)

πŸ“¦
version 2.56 Β· 5 versions
, in ubuntu questing

πŸ’– BED2GFF3(1p) β€” the manual, but make it cute πŸ’–

okay bestie, gather round, because this is the BED2GFF3(1p) page and it's literally from the User Contributed Perl Documentation section, and it's about turning UCSC Genome Browser gene files into GFF files that gbrowse can actually eat. no cap. 🧬✨


🌸 NAME 🌸

ucsc_genes2gff.pl β€” bestie, this script converts UCSC Genome Browser-format gene files into GFF files that are suitable for loading into gbrowse. that's the whole vibe. πŸ‘‘


✨ SYNOPSIS ✨

run it like this, okay?

% uscsc_genes2gff.pl [options] ucsc_file1 ucsc_file2...

and here are the options, they're giving very much minimal but mighty:

  • -src <string> β€” choose a source for the gene, default is "UCSC" πŸ’…
  • -origin <integer> β€” choose a relative position to number from, default is "1" πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this script actually does: it massages the gene files you can grab from the "tables" link of the UCSC genome browser (genome.ucsc.edu) into a form suitable for loading into gbrowse. glow-up arc, honestly. ✨

warning tho, fr fr: it only works with the gene tables. Other tables, such as EST alignments, contours and repeats, have their own formats which will require other scripts to parse. so don't come for this script with an EST file, it will simply not eat. 😭

to use it, you get one or more UCSC tables β€” either from the "Tables" link on the browser, or from the UCSC Genome Browser FTP site. then you just hand the table file to this script as the argument. you may want to provide an alternative "source" field. otherwise this script defaults to "UCSC". πŸŽ€

like so:

% pucsc_genes2gff.pl -src RefSeq refseq_data.ucsc > refseq.gff

and then the resulting GFF file can be loaded into a Bio::DB::GFF database using the following command:

% bulk_load_gff.pl -d <databasename> refseq.gff

and that's it, that's the pipeline, main character energy from start to finish. πŸ’œ


🌈 SEE ALSO 🌈

go read these too, iykyk:

  • Bio::DB::GFF
  • bulk_load_gff.pl
  • load_gff.pl

πŸ‘‘ AUTHOR πŸ‘‘

Lincoln Stein <lstein@cshl.org>. 🫢

Copyright (c) 2003 Cold Spring Harbor Laboratory

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty. πŸ“œ


and that's the whole page, bestie!! this one shipped as part of perl v5.40.0, dated 2024-10-20, under the name BED2GFF3(1p) β€” go forth and convert those genes, you absolute icon πŸ’–πŸŒΈβœ¨

πŸ“¦ where this page comes from