# HG changeset patch # User rachel-929292 # Date 1476796704 14400 # Node ID b255b5ea9708ba4ffb831619a0fe0dd640113ff4 Uploaded diff -r 000000000000 -r b255b5ea9708 script_2_GC_correct_bdp-qad.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/script_2_GC_correct_bdp-qad.pl Tue Oct 18 09:18:24 2016 -0400 @@ -0,0 +1,145 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use Data::Dumper; + +### Open input and create output files ### +open(TEST_LOG, ">$ARGV[1]_GC_bias") or die "Can't open test log!!\n"; +open(INPUT, "$ARGV[0]") or die "Can't open input!!\n"; +open(OUTPUT, ">$ARGV[1]") or die "Can't create output!!\n"; +open (TABLE, "$ARGV[2]") or die "Cannot open reference table"; + + +### Check input and output files have been provided ### +if (!$ARGV[0] or !$ARGV[1]) { + die "Incorrect number of parameters provided\n Usage: perl