Skip to content

Instantly share code, notes, and snippets.

View pranavathiyani's full-sized avatar
🎯
Focusing to implement thoughts as code

Pranavathiyani G pranavathiyani

🎯
Focusing to implement thoughts as code
View GitHub Profile
@pranavathiyani
pranavathiyani / Extract_hypothetical_proteins.pl
Last active February 9, 2020 15:55
Perl script for extracting hypothetical proteins from a multi-protein file. The input file must be in single-line fasta format.
#!/usr/bin/perl -w
#Executng the program requires sequence.fasta as single line fasta file
open(FH,"sequence.fasta") or die "file doesn't exist"; #sequence.fasta is the input file
open(OT,">>hypothetical_proteins.fasta");
@ff = <FH>;
$t="";
for($i=0;$i<@ff;$i++){
if($ff[$i]=~m/hypothetical/){
$t.= $ff[$i].$ff[$i+1];
}
@pranavathiyani
pranavathiyani / Residue_extraction.pl
Last active April 29, 2020 03:28
Perl script for obtaining polymorphic residues from multi-fasta file.
#Program to extract residues & description from multi-fasta file
#!usr/bin/perl
use strict;
#use warnings;
my %id2seq = ();
my $id = '';
open F,"DENV_PRSEQ.fasta",or die $!; #Input fasta file of DENV_PRSEQ.fasta
while(<F>){