scripts/release/genome_browser_hub_generator.py
def generate_trackdb_file(species, release_version, dest_dir):
    """
    Creates a new species trackDb.txt file for a given Rfam release version

    species: The name of the species directory
    release_version: The version of the Rfam release
    dest_dir: The path to the species directory where the trackDb file will
    be generated

    return: void
    """

    trackDb_fp = open(os.path.join(dest_dir, "trackDb.txt"), 'w')

    trackDb_fp.write("track Rfam\n")
    trackDb_fp.write("bigDataUrl ftp://ftp.ebi.ac.uk/pub/databases/Rfam/%s/genome_browser_hub/%s/bigBed\n" %
                     (release_version, species))
    trackDb_fp.write("shortLabel Rfam ncRNA\n"
                     "longLabel Rfam ncRNA annotations\n"
                     "type bigBed 4\n"
                     "url http://rfam.org/family/$$\n"
                     "visibility 3\n"
                     "color 102,0,0\n")
    trackDb_fp.write("html ftp://ftp.ebi.ac.uk/pub/databases/Rfam/%s/genome_browser_hub/hub_description.html\n" %
                     release_version)

    trackDb_fp.close()

    Creates a new species trackDb.txt file for a given Rfam release version

    species: The name of the species directory
    release_version: The version of the Rfam release
    dest_dir: The path to the species directory where the trackDb file will
    be generated

    return: void
    
Creates a new species trackDb.txt file for a given Rfam release version
species: The name of the species directory
release_version: The version of the Rfam release
dest_dir: The path to the species directory where the trackDb file will
be generated

void
Creates a new species trackDb . txt file for a given Rfam release version species : The name of the species directory release_version : The version of the Rfam release dest_dir : The path to the species directory where the trackDb file will be generated void
def generate_trackdb_file(species, release_version, dest_dir):
    trackDb_fp = open(os.path.join(dest_dir, "trackDb.txt"), 'w')
    trackDb_fp.write("track Rfam\n")
    trackDb_fp.write("bigDataUrl ftp://ftp.ebi.ac.uk/pub/databases/Rfam/%s/genome_browser_hub/%s/bigBed\n" %
                     (release_version, species))
    trackDb_fp.write("shortLabel Rfam ncRNA\n"
                     "longLabel Rfam ncRNA annotations\n"
                     "type bigBed 4\n"
                     "url http://rfam.org/family/$$\n"
                     "visibility 3\n"
                     "color 102,0,0\n")
    trackDb_fp.write("html ftp://ftp.ebi.ac.uk/pub/databases/Rfam/%s/genome_browser_hub/hub_description.html\n" %
                     release_version)
    trackDb_fp.close()
def generate_trackdb_file ( species , release_version , dest_dir ) : trackDb_fp = open ( os . path . join ( dest_dir , "trackDb.txt" ) , 'w' ) trackDb_fp . write ( "track Rfam\n" ) trackDb_fp . write ( "bigDataUrl ftp://ftp.ebi.ac.uk/pub/databases/Rfam/%s/genome_browser_hub/%s/bigBed\n" % ( release_version , species ) ) trackDb_fp . write ( "shortLabel Rfam ncRNA\n" "longLabel Rfam ncRNA annotations\n" "type bigBed 4\n" "url http://rfam.org/family/$$\n" "visibility 3\n" "color 102,0,0\n" ) trackDb_fp . write ( "html ftp://ftp.ebi.ac.uk/pub/databases/Rfam/%s/genome_browser_hub/hub_description.html\n" % release_version ) trackDb_fp . close ( )
Creates a new species trackDb.txt file for a given Rfam release version
species: The name of the species directory
release_version: The version of the Rfam release
dest_dir: The path to the species directory where the trackDb file will
be generated
Creates a new species trackDb . txt file for a given Rfam release version species : The name of the species directory release_version : The version of the Rfam release dest_dir : The path to the species directory where the trackDb file will be generated
"""
    Creates a new species trackDb.txt file for a given Rfam release version

    species: The name of the species directory
    release_version: The version of the Rfam release
    dest_dir: The path to the species directory where the trackDb file will
    be generated

    return: void
    """
species
release_version
dest_dir