DiscoveryDNA / map_motif

Map frequency matrices on sequence alignments.
2 stars 5 forks source link

set threshold #6

Closed IsaakCagampangHeller closed 6 years ago

IsaakCagampangHeller commented 6 years ago

set threshold as an argument

IsaakCagampangHeller commented 6 years ago

could you just loop through the whole dataframe and delete rows that are below the threshold?

iamciera commented 6 years ago

At the end use pandas to subset dataframe by threshold above a certain number (set by the third argument).

NOTE: Make sure that the third argument that sets the threshold is optional input and if threshold is not set, the program outputs everything.