"""__init__: fasta readers are initialized with the name of the file to read and a sequence collection that will store part or all the sequences contained in the file as members """
"""read: reads line by line the fasta file, store the sequences and their names in the sequence collection of the reader, if a filter is given (as a list of sequence name) only the sequences matching these names are store in the sequence collection. The key string is given if the sampleID of the sequence is stored after this string into the sequence name."""
fasta_file=open(self.filename,'r')
line=fasta_file.readline()
whileline:
# the sequence names are preceded by the symbole '>'
ifline[:1]=='>':
# the seqID of the sequence is extracted from this line