Command line to move all files from a directory !
find ~/Downloads/ -type f -print0 | xargs -0 mv -t ~/Videos730 days ago
677 days ago
Perl script for chi-squared test !
#!/usr/bin/perl # # chidi.pl # # A script to perfo...d test of the dinucleotide frequencies of two FASTA files # Last updated by: $Author$...sered and expected dinucleotide frequencies of both files my %file1_ob; my %file2_o...423 days ago
311 days ago
Raku script to find overlaps between two bed files !
...RGS.elems != 2 { say "Usage: ./compare_bed_files.raku file1.bed file2.bed"; exit 1; } # Read the contents of the two BED files my @bed1 = slurp(@*ARGS[0])....# Iterate over each interval in the first BED file for my $line1 (@bed1) {...106 days ago
Perl script to find overlaps between two bed files !
#!/usr/bin/perl use strict; use warnings; # Check if the correct number of arguments are provided if (@ARGV != 2) { die "Usage: $0 file1.bed file2.bed\n"; } # Read the contents of the two BED files my $file1 = shift @ARGV; my $file2 = shift @ARGV; open my $fh1, '106 days ago
Python script to finds extact similar sequence between two multi fasta files !
from Bio.Blast.Applications import NcbiblastnCommandline import os import sys def perform_local_blast(query_file, subject_file, output_file): # Set up the BL...15 days ago