Open ChristophePatterson opened 1 year ago
Hi Christophe
Thanks for the suggestion and for a workaround. Somehow no-one asked for and AND filter until now. I agree it would be a useful feature to have so I'll give this some thought.
There is a workaround in the Viewer involving applying the opposite filters, selecting all records, removing the filters then inverting the selection - not very elegant!
There should also be a workaround on the command line, but the --list
option to blobtools filters doesn't appear to be working to use that way.
I should be able to get a working AND filter for the command line relatively easily. I can't immediately think of a good way to include it in the Viewer as treating filters as OR goes pretty deep into the design, but hopefully it just needs a little more thought to find a solution.
Rich
Hi,
I'd like to request for the inclusion of "AND" filtering within the filter function of blobtools. The current set up can only accommodate "OR". If this feature is already included my apologies, but would it be possible to document it within the tutorial found here: https://blobtoolkit.genomehubs.org/blobtools2/blobtools2-tutorials/filtering-a-dataset/.
Currently, I can only filter data by OR. I would like to filter all contigs within my assembly that have a greater than 90% match to my mitogenome AND have a length shorter than the mitogenome. The following code would suggest that it is filtering by AND but is actually filtering by OR (This code removes all contigs a greater than 80% match to my mitogenome OR have a length shorter than the mitogenome.)
I have gotten around this by writing my own R script, that takes the blastn_mitogenome_hap1.out file (that contains the slen output) and creating a new .out file that contains a TRUE or FALSE statement for my query. This can then be filtered out using blobtools. If anyone else is interested in this code I have attached it below.
The inclusion of AND not OR is required for the filtering out of mitogenomes from the assembly but from my understanding, this is not currently possible within blobtools.
Many thanks,
Christophe
#######################
Custom R script
Then inputting into blobtools