covid2.exportToFASTA() """Create organism from file JSON""" # 1) Create an empty Organism covid3 = Organism() # 2) Use createByJSON covid3.createByJSON('./samples/sequence1.json', 'organism', 'nc', 'sequence', 'description') # We need the name of the collection, the name # of the NC attribute, the name of the sequence attribute and # the name of the description attribute in the json file. # 3) Ready for instructions covid3.printOrganism() """Export an organism to JSON file""" covid3.exportToJSON("hola.json") # The route of the output file it's optional for every export method """Create organism from file CLUSTAL""" # 1) Create an empty Organism covid4 = Organism() # 2) Use createByCLUSTAL covid4.createByCLUSTAL('./samples/sequence3.aln') # 3) Ready for instructions covid4.printOrganism() """Export an organism to CLUSTAL file""" covid4.exportToCLUSTAL()