Find and replace ambiguous characters in fasta file with Perl and Bioperl
...DERR $s->id(), "\t$ambig\n"; if (defined($opt_m)) { $thisSeq = ReplaceAmbiguousChar($thisSeq, $opt_m...[ATGC-]//g; $string =~ s/\s+//g; return $string; } sub ReplaceAmbiguousChar { my ($stri...2916 days ago
2911 days ago
1983 days ago
Find and replace in multifasta or fasta header with perl onliner
You have a fasta file and you want to replace: "|" You are told to replace that by "_" perl -i -p -e "s/\|/_/g" genome.fasta -i = inplace editing -p = loop over lines and print each line (after processing) -e = command line script1617 days ago
Installing Covid19 Environment !
...onomic databases is /home/vikas/anaconda3/envs/covid19-genepi/opt/krona/taxonomy If you would like the taxonomic data stored elsewhere, simply replace this directory with a symlin...925 days ago
Commands to Find and replace in file(s0) !
#Use SED sed -i 's/my/your/g' test.txt test2.txt test3.txt #Use FIND and SED find . -name *.txt -exec sed -i 's/my/your/g' {} \; #Use AWK awk '{sub(/{OLD_TERM}/,{NEW_TERM}); print}' {file} awk '{sub(/my/,your); print}' test.txt awk '{gsub(/i/,"a"); print}' test.txt771 days ago
Raku script to find SSRs in fastq file !
...$ssr { say " Start: $ssr, End: $ssr, Length: $ssr, Sequence: $ssr"; } } } $fh.close; } # Replace 'your_fastq_file.fastq' with...113 days ago
Python script for six frame translation of sequences !
...frame_type = "Forward" if frame > 0 else "Reverse" print(f"Frame {frame_type} {abs(frame)} Translation:\n{protein_sequence}\n") # Replace 'path/to/your/input.fasta' wi...96 days ago