scripts/support/genseq_to_rfamseq.py
def convert_genseq_to_rfamseq(genseq_dump):
    """
    Loads genseq json object and generates a rfamseq dump in txt format

    genseq_dump: This can be a directory or a genseq .json file

    return: void
    """

    if os.path.isfile(genseq_dump):

        rfamseq_entries = genseq_file_to_rfamseq(genseq_dump)

        for entry in rfamseq_entries:
            print '\t'.join(entry)

    elif os.path.isdir(genseq_dump):
        json_files = os.listdir(genseq_dump)

        for json_file in json_files:

            genseq_file_loc = os.path.join(genseq_dump, json_file)
            rfamseq_entries = genseq_file_to_rfamseq(genseq_file_loc)

            for entry in rfamseq_entries:
                print '\t'.join(entry)

    else:
        sys.exit("Wrong input! Please provide a json file or directory")

    Loads genseq json object and generates a rfamseq dump in txt format

    genseq_dump: This can be a directory or a genseq .json file

    return: void
    
Loads genseq json object and generates a rfamseq dump in txt format
genseq_dump: This can be a directory or a genseq .json file

void
Loads genseq json object and generates a rfamseq dump in txt format genseq_dump : This can be a directory or a genseq . json file void
def convert_genseq_to_rfamseq(genseq_dump):
    if os.path.isfile(genseq_dump):
        rfamseq_entries = genseq_file_to_rfamseq(genseq_dump)
        for entry in rfamseq_entries:
            print '\t'.join(entry)
    elif os.path.isdir(genseq_dump):
        json_files = os.listdir(genseq_dump)
        for json_file in json_files:
            genseq_file_loc = os.path.join(genseq_dump, json_file)
            rfamseq_entries = genseq_file_to_rfamseq(genseq_file_loc)
            for entry in rfamseq_entries:
                print '\t'.join(entry)
    else:
        sys.exit("Wrong input! Please provide a json file or directory")
def convert_genseq_to_rfamseq ( genseq_dump ) : if os . path . isfile ( genseq_dump ) : rfamseq_entries = genseq_file_to_rfamseq ( genseq_dump ) for entry in rfamseq_entries : print '\t' . join ( entry ) elif os . path . isdir ( genseq_dump ) : json_files = os . listdir ( genseq_dump ) for json_file in json_files : genseq_file_loc = os . path . join ( genseq_dump , json_file ) rfamseq_entries = genseq_file_to_rfamseq ( genseq_file_loc ) for entry in rfamseq_entries : print '\t' . join ( entry ) else : sys . exit ( "Wrong input! Please provide a json file or directory" )
Loads genseq json object and generates a rfamseq dump in txt format
genseq_dump: This can be a directory or a genseq .json file
Loads genseq json object and generates a rfamseq dump in txt format genseq_dump : This can be a directory or a genseq . json file
"""
    Loads genseq json object and generates a rfamseq dump in txt format

    genseq_dump: This can be a directory or a genseq .json file

    return: void
    """
genseq_dump