[−][src]Function varlociraptor::utils::filter_calls
pub fn filter_calls<F, I, II>(
calls: &mut Reader,
out: &mut Writer,
filter: F
) -> Result<(), Box<dyn Error>> where
F: Fn(&mut Record) -> Result<II, Box<dyn Error>>,
I: Iterator<Item = bool>,
II: IntoIterator<Item = bool, IntoIter = I>,
Filter calls by a given function.
Arguments
calls
- the calls to filterout
- output BCFfilter
- function to filter by. Has to return a bool for every alternative allele. True means to keep the allele.