# HG changeset patch # User deepakjadmin # Date 1452164606 18000 # Node ID c43eeb92e4594b814c19bb57ebb1a6ef80e39ceb Uploaded diff -r 000000000000 -r c43eeb92e459 addact.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/addact.xml Thu Jan 07 06:03:26 2016 -0500 @@ -0,0 +1,36 @@ + +"Merge data files of Active and Inactive compounds " + + PADEL_PATH + + + + + +tool2/addact.pl $Input1 $Activity1 $Input2 $Activity2 $Merged_file + + + + + + + + + + + + + + + + + +Provide descriptor files of active/positive and inactive/negative molecules and assign them properly. + + diff -r 000000000000 -r c43eeb92e459 padelnew.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/padelnew.xml Thu Jan 07 06:03:26 2016 -0500 @@ -0,0 +1,83 @@ + + + PADEL_PATH + padel + + + + +"PaDEL Descriptor Calculation Tool" + +#if '.smi' in $input.name +/bin/mkdir $input.extra_files_path; +ln -s $input $input.extra_files_path/molecule.smi; +/usr/bin/java -jar \$PADEL_PATH/PaDEL-Descriptor.jar -dir $input.extra_files_path/molecule.smi -2d $detectaromaticity $removesalt $standardizenitro $convert3d $retain3d $coordinate $fingerprint $retainorder -file $descriptor -log > $log ; +/bin/rm -rf $input.extra_files_path; +#else +/usr/bin/java -jar \$PADEL_PATH/PaDEL-Descriptor.jar -dir $input -2d $detectaromaticity $removesalt $standardizenitro $convert3d $retain3d $coordinate $fingerprint $retainorder -file $descriptor -log >$log +#end if + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Input may be any sdf,smile or mol2 file and output file will be in CSV format. + + + diff -r 000000000000 -r c43eeb92e459 removeduplecate.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/removeduplecate.xml Thu Jan 07 06:03:26 2016 -0500 @@ -0,0 +1,19 @@ + +"Removes Repeated Entry From File" + + PADEL_PATH + + + + +tool3/removeduplecate.R $Input1 $Non_redudant_mega_file + + + + + + + +run command with Descriptor file and in csv format only .output file will be in CSV format. + + diff -r 000000000000 -r c43eeb92e459 tool2/addact.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool2/addact.pl Thu Jan 07 06:03:26 2016 -0500 @@ -0,0 +1,25 @@ +#!/usr/bin/perl +use warnings; +use strict; +open(FH,$ARGV[0]) or die "Couldn't open file, $!"; +open(DH,">$ARGV[4]") or die "Couldn't open file, $!"; +my $first_line = scalar ; +chomp($first_line); +$first_line = join(",",$first_line,"outcome\n"); +print DH $first_line; +while(){chomp($_); +my $line= join(",",$_,"$ARGV[1]\n"); +print DH $line; +} +close FH; +open(SH,$ARGV[2]) or die "Coudn't open file,$!"; +scalar ; +while(){ +if($ARGV[1] ne $ARGV[3]){chomp($_); +my $line1= join(",",$_,"$ARGV[3]\n"); +print DH $line1; +} +else{ print ("There is error to assign activity\n");exit;} +} +close SH; +close DH; diff -r 000000000000 -r c43eeb92e459 tool2/addact.pl.copy --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool2/addact.pl.copy Thu Jan 07 06:03:26 2016 -0500 @@ -0,0 +1,25 @@ +#!/usr/bin/perl +use warnings; +use strict; +open(FH,$ARGV[0]) or die "Couldn't open file, $!"; +open(DH,">tmp.txt") or die "Couldn't open file, $!"; +my $first_line = scalar ; +chomp($first_line); +$first_line = join(",",$first_line,"outcome\n"); +print DH $first_line; +while(){chomp($_); +my $line= join(",",$_,"$ARGV[1]\n"); +print DH $line; +} +close FH; +open(SH,$ARGV[2]) or die "Coudn't open file,$!"; +scalar ; +while(){ +if($ARGV[1] ne $ARGV[3]){chomp($_); +my $line1= join(",",$_,"$ARGV[3]\n"); +print DH $line1; +} +else{ print ("There is error to assign activity\n");exit;} +} +close SH; +close DH; diff -r 000000000000 -r c43eeb92e459 tool3/removeduplecate.R --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool3/removeduplecate.R Thu Jan 07 06:03:26 2016 -0500 @@ -0,0 +1,11 @@ +args <- commandArgs(TRUE) + + +res1 <- read.csv(args[1]) +#res11 <- duplicated(res1[,1:length(res1) - 1]) +res11 <- duplicated(res1[,1]) +result <- res1[!res11,] +names1 <- result[,1] +rownames(result) <- names1 +result$Name <- NULL +write.csv(result,file=args[2]) diff -r 000000000000 -r c43eeb92e459 tool_dependencies.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Thu Jan 07 06:03:26 2016 -0500 @@ -0,0 +1,23 @@ + + + + + $REPOSITORY_INSTALL_DIR + + + + + + https://github.com/Deep2106/R-3.1.3caret/raw/padel/DataMiningWORK/GCAC_ON_GOLD_STAND_DATA/TOOLSHED_WORK_FINAL/r_caret_final_test/PaDEL/PADEL-USED/trp/PADEL-USED.zip + . + $PADEL_PATH + + + + + + + PaDEL v 2.18 installed successfully. + + +