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...950 days ago
949 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 --title...948 days ago
Download desire version of Blast software !
...bles/blast+/2.6.0/ncbi-blast-2.6.0+-x64-linux.tar.gz #unpacking blast tar -zxvf ncbi-blast-2.6.0+-x64-linux.tar.gz #Slurm template #!/bin/bash #SBATCH --partition=longjobs...942 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.ni...917 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 TTC...823 days ago
Bash script to split multifasta file !
#Using awk, we can easily split a file (multi.fa) into chunks of size N (here, N=500), by using the following one-liner: awk 'BEGIN {n=0;} /^>/ {if(n%500==0){file=s...823 days ago
Command line to print disk usage on Linux terminal !
#Print disk usage - perl du -h |perl -e'%h=map{/.\s/;99**(ord$&&7)-$`,$_}`du -h`;die@h{sort%h}' #Bash du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh #Base du -scBM | sort -n #More du -s * | sort -rn | cut -f2- | xargs -d "\n" du -sh814 days ago
Bash script to transfer files to server !
# rsync options source destination rsync -azvh --progress PacBio_clean.fa xxx@xxx.xxx.res.in:/home/ # scp source_file_name username@destination_host:destination_folder scp –rpv /datafile xxx@192.168.1.100:/home/me803 days ago
794 days ago