calour.amplicon_experiment.AmpliconExperiment.filter_fasta

AmpliconExperiment.filter_fasta(filename, negate=False, inplace=False)[source]

Filter features from experiment based on fasta file

Parameters:
  • filename (str) – the fasta filename containing the sequences to use for filtering
  • negate (bool, optional) – False (default) to keep only sequences matching the fasta file; True to remove sequences in the fasta file.
  • inplace (bool, optional) – False (default) to create a copy of the experiment, True to filter inplace
Returns:

newexp – filtered so contains only sequence present in exp and in the fasta file

Return type:

Experiment