I was thinking to remove the possible genomic contamination at first to set a cutoff for contig size.
Now I guess I need to map the sequence back to assembly see how it goes,
Thanks,

You are currently viewing the SEQanswers forums as a guest, which limits your access. Click here to register now, and join the discussion
#!/usr/bin/perl use strict; use warnings; use Getopt::Long; use Bio::SeqIO; my $inFile; my $cutoff; my $outFile; GetOptions ("in=s" => \$inFile, "cutoff=i" => \$cutoff, "out=s" => \$outFile) || die "Couldn't get parameters with Getopt::Long.\n"; my $seqIn = Bio::SeqIO->new(-file => $inFile, -format => 'fasta'); my $seqOut = Bio::SeqIO->new(-file => ">$outFile", -format => 'fasta'); while (my $seq = $seqIn->next_seq()) { if ($seq->length() < $cutoff) { $seqOut->write_seq($seq); } }
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, 09-22-2023, 09:05 AM
|
0 responses
22 views
0 likes
|
Last Post
by seqadmin
09-22-2023, 09:05 AM
|
||
Started by seqadmin, 09-21-2023, 06:18 AM
|
0 responses
15 views
0 likes
|
Last Post
by seqadmin
09-21-2023, 06:18 AM
|
||
Started by seqadmin, 09-20-2023, 09:17 AM
|
0 responses
15 views
0 likes
|
Last Post
by seqadmin
09-20-2023, 09:17 AM
|
||
Started by seqadmin, 09-19-2023, 09:23 AM
|
0 responses
29 views
0 likes
|
Last Post
by seqadmin
09-19-2023, 09:23 AM
|
Leave a comment: