pub fn to_gfa_with_tags<P: AsRef<Path>, F: Fn(&Node<'_, K, D>) -> String>(
        &self,
        gfa_out: P,
        tag_func: F,
    ) -> Result<(), Error> {
        let mut wtr = File::create(gfa_out)?;
        writeln!(wtr, "H\tVN:Z:debruijn-rs")?;

        for i in 0..self.len() {
            let n = self.get_node(i);
            self.node_to_gfa(&n, &mut wtr, Some(&tag_func))?;
        }

        Ok(())
    }
/// Write the graph to GFA format
Write the graph to GFA format
Write the graph to GFA format
pub fn to_gfa_with_tags<P: AsRef<Path>, F: Fn(&Node<'_, K, D>) -> String>(
        &self,
        gfa_out: P,
        tag_func: F,
    ) -> Result<(), Error> {
        let mut wtr = File::create(gfa_out)?;
        writeln!(wtr, "H\tVN:Z:debruijn-rs")?;
        for i in 0..self.len() {
            let n = self.get_node(i);
            self.node_to_gfa(&n, &mut wtr, Some(&tag_func))?;
        }
        Ok(())
    }
pub fn to_gfa_with_tags < P : AsRef < Path > , F : Fn ( & Node < ' _ , K , D > ) -> String > ( & self , gfa_out : P , tag_func : F , ) -> Result < ( ) , Error > { let mut wtr = File :: create ( gfa_out ) ? ; writeln ! ( wtr " \t " ) ? ; for i in 0 .. self . len ( ) { let n = self . get_node ( i ) ; self . node_to_gfa ( & n , & mut wtr , Some ( & tag_func ) ) ? ; } Ok ( ( ) ) }
Write the graph to GFA format
Write the graph to GFA format
&self
gfa_out
P
tag_func
F
&self
gfa_out
P
tag_func
F