def extract_sequences(self, ids, new_path=None):
<EOL>if new_path is None: new_fasta = self.__class__(new_temp_path())<EOL>elif isinstance(new_path, FASTA): new_fasta = new_path<EOL>else:                new_fasta = self.__class__(new_path)<EOL>new_fasta.create()<EOL>for seq in self:<EOL><INDENT>if seq.id in ids: new_fasta.add_seq(seq)<EOL><DEDENT>new_fasta.close()<EOL>return new_fasta<EOL>
Will take all the sequences from the current file who's id appears in
        the ids given and place them in the new file path given.