diff options
Diffstat (limited to 'wqflask/maintenance/dataset/calculation')
6 files changed, 0 insertions, 53 deletions
diff --git a/wqflask/maintenance/dataset/calculation/__init__.py b/wqflask/maintenance/dataset/calculation/__init__.py deleted file mode 100644 index e69de29b..00000000 --- a/wqflask/maintenance/dataset/calculation/__init__.py +++ /dev/null diff --git a/wqflask/maintenance/dataset/calculation/correlation/__init__.py b/wqflask/maintenance/dataset/calculation/correlation/__init__.py deleted file mode 100644 index e69de29b..00000000 --- a/wqflask/maintenance/dataset/calculation/correlation/__init__.py +++ /dev/null diff --git a/wqflask/maintenance/dataset/calculation/correlation/about.txt b/wqflask/maintenance/dataset/calculation/correlation/about.txt deleted file mode 100644 index a12f8c47..00000000 --- a/wqflask/maintenance/dataset/calculation/correlation/about.txt +++ /dev/null @@ -1,3 +0,0 @@ -BXD -genotype, phenotype, mRNA expression -correlation
\ No newline at end of file diff --git a/wqflask/maintenance/dataset/calculation/correlation/conf.ini b/wqflask/maintenance/dataset/calculation/correlation/conf.ini deleted file mode 100644 index 9c23bb45..00000000 --- a/wqflask/maintenance/dataset/calculation/correlation/conf.ini +++ /dev/null @@ -1,2 +0,0 @@ -[configuration] -genofile = /home/leiyan/gn/web/genotypes/BXD.geno diff --git a/wqflask/maintenance/dataset/calculation/correlation/correlations.py b/wqflask/maintenance/dataset/calculation/correlation/correlations.py deleted file mode 100644 index b089e446..00000000 --- a/wqflask/maintenance/dataset/calculation/correlation/correlations.py +++ /dev/null @@ -1,47 +0,0 @@ -# Author: Lei Yan -# Create Date: 2014-01-21 -# Last Update Date: 2014-01-24 - -# import -import sys -import os -import re -import MySQLdb -import ConfigParser - -def main(argv): - - # load configuration from configuration file - config = ConfigParser.ConfigParser() - config.read(argv[1]) - genofile = config.get('configuration', 'genofile') - - # parse genofile - genotypes = [] - file_geno = open(genofile, 'r') - for line in file_geno: - line = line.strip() - if line.startswith('#'): - continue - if line.startswith('@'): - continue - cells = line.split() - if line.startswith("Chr"): - strains = cells[4:] - continue - genotype = {} - genotype['chr'] = cells[0] - genotype['locus'] = cells[1] - genotype['cm'] = cells[2] - genotype['mb'] = cells[3] - genotype['values'] = cells[4:] - genotypes.append(genotype) - print "get %d strains:\t%s" % (len(strains), strains) - print "load %d genotypes" % len(genotypes) - - # phenotypes - -# main -if __name__ == "__main__": - main(sys.argv) - print "exit successfully" diff --git a/wqflask/maintenance/dataset/calculation/correlation/run.sh b/wqflask/maintenance/dataset/calculation/correlation/run.sh deleted file mode 100644 index eccfa507..00000000 --- a/wqflask/maintenance/dataset/calculation/correlation/run.sh +++ /dev/null @@ -1 +0,0 @@ -/usr/bin/python correlations.py conf.ini
\ No newline at end of file |