Bash script to check installed bioinformatics program !
allTools=(bwa mummer trimomatic) decFlag=0; for name in ${allTools[@]}; do #echo "enter your package name" # read name dpkg -s $name &> /dev/null...1060 days ago
Corona variant calling steps !
#!/bin/bash FILE_PATH="data/trimmed_fastq_small/" find "$FILE_PATH" -name "*.fasta" | while IFS= read -r my_file do filename=$(basename "$my_file") basename...1059 days ago
976 days ago
Run multiple bash command in screen !
#login to screen screen -r 123 #bash.sh srun --partition=compute --nodes=1 --ntasks-per-node=40 --pty bash.sh #Run and check the status in screen contol +A +D976 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 check if entered value is not null, and...964 days ago
963 days ago
Get the Linux system information !
#!/bin/bash # while-menu-dialog: a menu driven system information program DIALOG_CANCEL=1 DIALOG_ESC=255 HEIGHT=0 WIDTH=0 display_result() { dialog --titl...962 days ago
Download desire version of Blast software !
#Create a directory and wget it wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.6.0/ncbi-blast-2.6.0+-x64-linux.tar.gz #unpacking blast tar -zxvf ncbi-bl...956 days ago
Bash script to simulate a genome !
# Reference https://github.com/chhylp123/hifiasm/issues/33 # Use Drosophila melongaster PacBio assembly cd /genetics/elbers/test/fly2 wget https://ftp.ncbi.nlm.nih....932 days ago
bash script to extract sequence by ids !
Use a Perl one-liner, grep and seqtk subseq to extract the desired fasta sequences: # Create test input: cat > in.fasta BGI_novel_T016313 Solyc03g025570.2.1 TTCAA...837 days ago