1022 days ago
Commands to Remove White Space In Text Or String Using Awk And Sed In Linux
text=" ATGGTV AGTGACCTAGAGTGATGA G GGRTTT" echo "$text" | sed 's/ //g' OR echo "$text" |...gsub(/ /,""); print }' Return: ATGGTVAGTGACCTAGAGTGATGAGGGRTTT echo "$...echo "$text" | sed 's/ \$//g' #Multiple space cat /tmp/test.txt | sed 's/...1017 days ago
Trim the reads in loop using Trimmomatic !
...*_1.fastq.gz do base=$(basename ${infile} _1.fastq.gz) trimmomatic PE ${infile} ${base}_2.fastq....2un.trim.fastq.gz \ SLIDINGWINDOW:4:20 MINLEN:25 ILLUMINACLIP:NexteraPE-PE.fa:2:40:15...1016 days ago
Oneliner to convert lower-case to sequence masked with Ns
perl -pe '/^[^>]/ and $_=~ s/[a-z]/N/g' genomic.fna > genomic.N-masked.fna awk '{if(/^[^>]/)gsub(/[a-z]/,"N");print $0}' genomic.fna > genomic.N-masked.fna1011 days ago
Perl script for Smith-Waterman Algorithm
...usage statement die "usage: $0 \n" unless @ARGV == 2; # get sequences from command line my ($seq1, $seq2)...@ARGV; # scoring scheme my $MATCH = 1; # +1 for letters that match my $MISMATCH = -1; # -1 for...1011 days ago
1011 days ago
Command line to create blast uniref database !
#The NCBI BLAST+ distribution does not include 'blastpgp', it has been replaced by the 'psiblast' program. The 'blastpgp' program is available in the legacy NCBI BLAST package (no longe...ef90filt -i uniref90filt #When using NCBI BLAST+ the 'formatdb' comma...1011 days ago
Inreractive SCP / File transfer !
...bin/bash #next line prints hearer of script echo "Interactive Script to Copy File (files) / Directory using scp" #next line ch...finishes while loop done #next line check if entered value is not n...filename filename='null' #next line check if entered value is null,...1011 days ago
1010 days ago
Get the Linux system information !
...ystem information program DIALOG_CANCEL=1 DIALOG_ESC=255 HEIGHT=0...dialog --title "$1" \ --no-collapse \ --msgbox "$resu...itle "Menu" \ --clear \ --cancel-label "Exit" \ --me...;; $DIALOG_ESC) clear echo "Program abor...1009 days ago