Exemplo n.º 1
0
def test_sequences2():
    fasta = FastaFile("/home/kenglish/Data/uploads/EST_Clade_A.fasta")
    sequences = fasta.get_sequences() 
    nose.tools.assert_equal( len(sequences ), 2163 )
    nose.tools.assert_equal( sequences[0].id,  "1420338:1")
    nose.tools.assert_equal( len(sequences[0]) , 302 )
Exemplo n.º 2
0
def test_sequence_count():
    file = fastafile.PERMANENT_STORE + "EST_Clade_A_5.fasta" 
    fasta = FastaFile( file )
    nose.tools.assert_equal(fasta.sequence_count(),  5)