News and Announcements » |
Description:
Remove samples from a distance matrix based on a mapping file or an otu table or a list of sample ids.
Usage: filter_distance_matrix.py [options]
Input Arguments:
Note
[REQUIRED]
[OPTIONAL]
Output:
Filter samples ids listed in sample_id_list.txt from dm.txt
filter_distance_matrix.py -i dm.txt -o dm_out_sample_list.txt --sample_id_fp sample_id_list.txt
Filter samples ids in otu_table.biom from dm.txt
filter_distance_matrix.py -i dm.txt -o dm_out_otu_table.txt -t otu_table.biom
Filter samples ids where DOB is 20061218 in Fasting_Map.txt. (Run “filter_samples_from_otu_table.py -h” for additional information on how metadata filtering can be specified.)
filter_distance_matrix.py -i dm.txt -o dm_out_mapping_file.txt -m Fasting_Map.txt -s "DOB:20061218"