Results for "Replace"

Wire posts

  • Remove N from a fasta file. Go to vi editor, type :%s/N\{25,\}//g and press enter. #Vim #vi #N #Replace #Fasta

    3623 days ago

  • Creates 100 random DNA sequences with 20 residues. sapply(1:100, function(x) paste(sample(c("A","T","G","C"), 20, replace=T), collapse="")) #R #Random #Sequence #DNA #Script

    3626 days ago

  • replace a word in all files in a directory: grep -lr --exclude-dir=".git" -e "oldword" . | xargs sed -i "s/oldword/newword/g" #Replace #Word #Linux

    3534 days ago

  • Search and replace the string 'this' with the string 'that' in the file filename. perl -p -i -e 's/this/that/g' filename #Perl #Trick #PerlOneLiner #Tipsoftheday #Replace #FindandReplace

    3164 days ago

  • Replace space with tab: perl -lpe 's/\s/\t/g' < trf_file.dat > outfile.txt #TRF #Tab #Space #Replace #Perl #PerlTrick #PerlOneliner

    2832 days ago

  • Replace space with tab. $ awk -v OFS="\t" '$1=$1' file1 #tab #space #replace #awk

    2463 days ago

  • Sed illegal charters from fasta. $ sed '/^[^>]/ s/[^AGTC]/N/gi' < seq.fa #fasta #otherthanATGC #replace #sed #Linux #illegal

    2146 days ago

  • Replace lowercase to N. perl -pe '/^[^>]/ and $_=~ s/[a-z]/N/g' genomic.fna > genomic.N-masked.fna #Mask #Lowecase2N #LowerCase

    2129 days ago

  • sed -i 's/2019/2020/g' test.txt test2.txt test3.txt #Find #Replace #sed

    771 days ago