Adds the command obimultiplex

This commit is contained in:
2022-02-01 17:31:28 +01:00
parent 76d9309508
commit 8dbda68746
13 changed files with 688 additions and 79 deletions

View File

@ -52,7 +52,18 @@ func main() {
file, _ := os.Open("sample/wolf_diet_ngsfilter.txt")
xxx, _ := obiformats.ReadNGSFilter(file)
xxx.Compile(2)
fmt.Printf("%v\n==================\n", xxx)
fmt.Println(xxx)
for pp, m := range xxx {
fmt.Printf("%v %v\n", pp, *m)
}
seqfile, _ := obiformats.ReadFastSeqFromFile("xxxx.fastq")
for seqfile.Next() {
seq := seqfile.Get()
barcode, _ := xxx.ExtractBarcode(seq, true)
fmt.Println(obiformats.FormatFasta(barcode, obiformats.FormatFastSeqOBIHeader))
}
}