Skip to content

Commit

Permalink
code reorganization - created obsolet and legacy directories
Browse files Browse the repository at this point in the history
--HG--
rename : AlignatorBenchmark.py => legacy/AlignatorBenchmark.py
rename : GraphTree.py => legacy/GraphTree.py
rename : NeighbourTools.py => legacy/NeighbourTools.py
rename : PdbTools.py => legacy/PdbTools.py
rename : Rsdb2Html.py => legacy/Rsdb2Html.py
rename : Rsdb2Plot.py => legacy/Rsdb2Plot.py
rename : ScopTester.py => legacy/ScopTester.py
rename : Stats2Html.py => legacy/Stats2Html.py
rename : gnuplot_data.py => legacy/gnuplot_data.py
rename : gnuplot_histogram.py => legacy/gnuplot_histogram.py
rename : pdb2filter_residues.py => legacy/pdb2filter_residues.py
rename : pdb2sequence.py => legacy/pdb2sequence.py
rename : pdb2superimpose.py => legacy/pdb2superimpose.py
rename : pdb_annotate_structure.py => legacy/pdb_annotate_structure.py
rename : pdb_domains2molscript.py => legacy/pdb_domains2molscript.py
rename : pdb_filter_residues.py => legacy/pdb_filter_residues.py
rename : pdb_renumber.py => legacy/pdb_renumber.py
rename : pdb_superimpose.py => legacy/pdb_superimpose.py
rename : renumber_pdb_file.py => legacy/renumber_pdb_file.py
rename : renumber_pdb_files.py => legacy/renumber_pdb_files.py
rename : zinba.py => obsolete/zinba.py
  • Loading branch information
AndreasHeger committed Aug 22, 2012
1 parent e23ebc3 commit c35ce25
Show file tree
Hide file tree
Showing 64 changed files with 58 additions and 63 deletions.
7 changes: 4 additions & 3 deletions Pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,13 +962,14 @@ def peekParameters( workingdir, pipeline ):
'''

dirname = os.path.dirname( __file__ )
# special case: pipeline called in source directory
if dirname == "": dirname = os.path.abspath(".")
pipeline = os.path.join( dirname, pipeline )
assert os.path.exists( pipeline ), "can't find pipeline source %s" % pipeline
if workingdir == "":
return {}
if workingdir == "": workingdir = os.path.abspath(".")

assert os.path.exists( workingdir ), "can't find working dir %s" % workingdir

process = subprocess.Popen( "python %s -f -v 0 dump" % pipeline,
cwd = workingdir,
shell = True,
Expand Down
2 changes: 0 additions & 2 deletions SaryFasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

import os, sys, array, string, re, types, optparse, time, struct, hashlib, base64, shutil, subprocess
import glob, random
import psyco
psyco.full()

##------------------------------------------------------------
def getHID ( sequence ):
Expand Down
14 changes: 5 additions & 9 deletions Stats2Plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,26 @@
----
'''
from Pairsdb import *

import sys
import os
import string
import re

from RSDB2PLOT import RSDB2PLOT
import GraphXY
import Plot
from Rsdb2Plot import Rsdb2Plot

class RSDB2PLOT_test( RSDB2PLOT):
class Rsdb2Plot_test( Rsdb2Plot):

def __init__( self, grap ):
RSDB2PLOT.__init__( self, graph )
Rsdb2Plot.__init__( self, graph )

def ParseColumns( self, columns ):
return columns


class RSDB2PLOT_clustering ( RSDB2PLOT ):
class Rsdb2Plot_clustering ( Rsdb2Plot ):

def __init__( self, graph, columns ):
RSDB2PLOT.__init__( self, graph )
Rsdb2Plot.__init__( self, graph )
self.mColumns = columns

def ParseHeader( self, line ):
Expand Down
6 changes: 2 additions & 4 deletions align_all_vs_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
import Experiment

import alignlib
import Bio
import Bio.Fasta
import FastaIterator

""" program $Id: align_all_vs_all.py 2782 2009-09-10 11:40:29Z andreas $
"""
Expand All @@ -88,8 +87,7 @@
else:
infile = sys.stdin

parser = Bio.Fasta.RecordParser()
iterator = Bio.Fasta.Iterator( infile, parser)
parser = FastaIterator.FastaIterator( infile )

sequences = []
while 1:
Expand Down
2 changes: 1 addition & 1 deletion analyze_logfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def getHeader(self):
choices = ("file", "node" ),
help="analysis mode [%default]." )

parser.add_option( "-r", "--recursive", action="store_true"
parser.add_option( "-r", "--recursive", action="store_true",
help="recursively look for logfiles from current directory [%default]." )

parser.set_defaults(
Expand Down
1 change: 0 additions & 1 deletion annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@

import Experiment as E
import GFF, GTF
import rtree
import numpy
import Stats

Expand Down
4 changes: 2 additions & 2 deletions get_sequences_from_www.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
import Experiment

from Bio import SeqRecord
from Bio.WWW import ExPASy
from Bio.SwissProt import SProt
import Bio.ExPASy as ExPASy
import Bio.SwissProt as SProt
from Bio import File

parser = optparse.OptionParser( version = "%prog version: $Id: get_sequences_from_www.py 2782 2009-09-10 11:40:29Z andreas $")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions nr2table.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@


import Experiment
import Bio, Bio.Fasta
import Bio
import FastaIterator

##------------------------------------------------------------
if __name__ == '__main__':
Expand All @@ -70,8 +71,7 @@

(options, args) = Experiment.Start( parser )

parser = Bio.Fasta.RecordParser()
iterator = Bio.Fasta.Iterator( sys.stdin, parser)
iterator = FastaIterator.FastaIterator( sys.stdin )

sequences = []

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pipeline_ancestral_repeats.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
###################################################
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ],
defaults = {
Expand Down
2 changes: 1 addition & 1 deletion pipeline_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
## Pipeline configuration
###################################################
PARAMS = P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_benchmark_rnaseqmappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )
PARAMS = P.PARAMS
Expand Down
2 changes: 1 addition & 1 deletion pipeline_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ],
defaults = { "maps" : "" } )
Expand Down
2 changes: 1 addition & 1 deletion pipeline_cpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
## Pipeline configuration
###################################################
import Pipeline as P
P.getParameters( ["%s/pipeline.ini" % __file__[:-len(".py")], "../pipeline.ini", "pipeline.ini" ] )
P.getParameters( ["%s/pipeline.ini" % os.path.splitext(__file__)[0], "../pipeline.ini", "pipeline.ini" ] )
PARAMS = P.PARAMS
PARAMS_ANNOTATIONS = P.peekParameters( PARAMS["annotations_dir"],"pipeline_annotations.py" )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_cufflinks_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ],
defaults = {
Expand Down
3 changes: 3 additions & 0 deletions pipeline_docs/pipeline_mapping/trackers/Status.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def testSplicedAlignments( self, track ):
'''

if not self.hasTable( 'exon_validation'):
return "NA", 0

value = self.getValue( "SELECT spliced/CAST(input AS FLOAT) from exon_validation WHERE track = '%(track)s'" )
if value >= 0.15: status= "PASS"
elif value >= 0.05: status= "WARNING"
Expand Down
2 changes: 1 addition & 1 deletion pipeline_exome.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
#########################################################################
#########################################################################
# load options from the config file
P.getParameters( ["%s/pipeline.ini" % __file__[:-len(".py")], "../exome.ini", "exome.ini" ] )
P.getParameters( ["%s/pipeline.ini" % os.path.splitext(__file__)[0], "../exome.ini", "exome.ini" ] )
PARAMS = P.PARAMS

#########################################################################
Expand Down
2 changes: 1 addition & 1 deletion pipeline_fastqToBigWig.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
USECLUSTER = True

import Pipeline as P
P.getParameters( ["%s.ini" % __file__[:-len(".py")], "pipeline.ini" ] )
P.getParameters( ["%s.ini" % os.path.splitext(__file__)[0], "pipeline.ini" ] )
PARAMS = P.PARAMS

###################################################################
Expand Down
2 changes: 1 addition & 1 deletion pipeline_fusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_intervals.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
###################################################
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ],
defaults = {
Expand Down
3 changes: 2 additions & 1 deletion pipeline_kamilah.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
else:
EXPERIMENTAL_TRACKS = []

PARAMS = P.getParameters()
PARAMS = P.getParameters(
defaults = { 'ancestral_repeats_filename': None } )

PARAMS.update( {
"annotation" : "regions.gff",
Expand Down
2 changes: 1 addition & 1 deletion pipeline_liftover.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )
PARAMS = P.PARAMS
Expand Down
2 changes: 1 addition & 1 deletion pipeline_mappability.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from ruffus import *
import Pipeline as P

P.getParameters( ["%s.ini" % __file__[:-len(".py")], "pipeline.ini" ] )
P.getParameters( ["%s.ini" % os.path.splitext(__file__)[0], "pipeline.ini" ] )
PARAMS = P.PARAMS
USECLUSTER = True

Expand Down
2 changes: 1 addition & 1 deletion pipeline_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ],
defaults = {
Expand Down
2 changes: 1 addition & 1 deletion pipeline_mapping_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
## Pipeline configuration
###################################################
import Pipeline as P
P.getParameters( ["%s/pipeline.ini" % __file__[:-len(".py")], "../pipeline.ini", "pipeline.ini" ] )
P.getParameters( ["%s/pipeline.ini" % os.path.splitext(__file__)[0], "../pipeline.ini", "pipeline.ini" ] )
PARAMS = P.PARAMS

bowtie_options = {'n0m1':"-n 0 -a --best --strata -m 1 -3 1",'n1m1':"-n 1 -a --best --strata -m 1 -3 1",'n2m1':"-n 2 -a --best --strata -m 1 -3 1",'n3m1':"-n 3 -a --best --strata -m 1 -3 1",
Expand Down
2 changes: 1 addition & 1 deletion pipeline_medip.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
#########################################################################
#########################################################################
# load options from the config file
P.getParameters( ["%s/pipeline.ini" % __file__[:-len(".py")],
P.getParameters( ["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_peakcalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ],
defaults = {
Expand Down
3 changes: 2 additions & 1 deletion pipeline_polyphen.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
###################################################################
###################################################################
## read global options from configuration file
P.getParameters()
P.getParameters(
defaults = { 'polyphen_modes' : "" } )

P.PARAMS.update(
{ "transcripts" :"transcripts.gtf.gz",
Expand Down
2 changes: 1 addition & 1 deletion pipeline_promotors.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_readqc.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )
PARAMS = P.PARAMS
Expand Down
2 changes: 1 addition & 1 deletion pipeline_rmaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )
PARAMS = P.PARAMS
Expand Down
2 changes: 1 addition & 1 deletion pipeline_rnaseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ],
defaults = {
Expand Down
2 changes: 1 addition & 1 deletion pipeline_rnaseqdiffexpression.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_rnaseqtranscripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ],
defaults = {
Expand Down
2 changes: 1 addition & 1 deletion pipeline_snps.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
###################################################################
## read global options from configuration file
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_species_conservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
## Pipeline configuration
###################################################
import Pipeline as P
P.getParameters( ["%s.ini" % __file__[:-len(".py")], "../pipeline.ini", "pipeline.ini" ] )
P.getParameters( ["%s.ini" % os.path.splitext(__file__)[0], "../pipeline.ini", "pipeline.ini" ] )
PARAMS = P.PARAMS
#PARAMS_ANNOTATIONS = P.peekParameters( PARAMS["annotations_dir"],"pipeline_annotations.py" )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )

Expand Down
2 changes: 1 addition & 1 deletion pipeline_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
# load options from the config file
import Pipeline as P
P.getParameters(
["%s/pipeline.ini" % __file__[:-len(".py")],
["%s/pipeline.ini" % os.path.splitext(__file__)[0],
"../pipeline.ini",
"pipeline.ini" ] )

Expand Down
Loading

0 comments on commit c35ce25

Please sign in to comment.