Skip to content

Commit

Permalink
fix up python server copyright notices. refs #1024
Browse files Browse the repository at this point in the history
  • Loading branch information
tomclegg committed Jul 25, 2012
1 parent 214b7e5 commit 5155e87
Show file tree
Hide file tree
Showing 27 changed files with 86 additions and 37 deletions.
3 changes: 3 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
* Code is copyright 2009, 2010, 2011, 2012 Clinical Future, Inc.,
distributed under AGPLv3. http://www.gnu.org/licenses/agpl-3.0.html

* Python server based on Trait-o-matic by Xiaodi Wu
https://github.com/xwu/trait-o-matic/blob/master/LICENSE

* Style sheet adapted from "Indigo" by Viktor Persson http://arcsin.se
("Feel free to use and modify but please provide credits.")

Expand Down
4 changes: 3 additions & 1 deletion server/call_missing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: call_missing.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
Find coding regions missing in a genome report.
Expand Down
4 changes: 3 additions & 1 deletion server/codon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# This code is part of the Trait-o-matic project and is governed by its license.
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

one_letter_alphabet = {
"Ala": "A",
Expand Down
3 changes: 3 additions & 0 deletions server/compile_covered.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

import re
import os
Expand Down
5 changes: 4 additions & 1 deletion server/config_names.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/python
# Filename: config.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

import os

UPLOAD_DIR = os.getenv('UPLOAD')
Expand Down
3 changes: 3 additions & 0 deletions server/count_variants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

import re
import sys
Expand Down
6 changes: 4 additions & 2 deletions server/fastq_to_fasta.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: fastq_to_fasta.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
usage: %prog fastq ...
Expand Down Expand Up @@ -39,4 +41,4 @@ def main():
quality_length += len(line.rstrip())

if __name__ == "__main__":
main()
main()
4 changes: 3 additions & 1 deletion server/genome_analyzer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: server.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
usage: %prog [options]
Expand Down
4 changes: 3 additions & 1 deletion server/get_metadata.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: get_metadata.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
usage: %prog genome_gff_file
Expand Down
3 changes: 3 additions & 0 deletions server/getev_pph2_extract.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""Extract scores from Polyphen 2 1.9GB data dump for GET-Evidence variants"""
import re
Expand Down
4 changes: 3 additions & 1 deletion server/gff2json.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: gff2json.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
usage: %prog gff_file
Expand Down
4 changes: 3 additions & 1 deletion server/gff_dbsnp_query.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: gff_query_dbsnp.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
usage: %prog gff_file dbsnp_file [output_file]
Expand Down
4 changes: 3 additions & 1 deletion server/gff_getevidence_map.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: gff_getevidence_map.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
usage: %prog nssnp.gff getev_flatfile.json[.gz] [output_file]
Expand Down
4 changes: 3 additions & 1 deletion server/gff_nonsynonymous_filter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: gff_nonsynonymous_filter.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
usage: %prog gff_file twobit_file transcript_file [output_file]
Expand Down
6 changes: 3 additions & 3 deletions server/gff_trio_phase.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python
# Filename: gff_trio_phase.py
# Author: Evan Maxwell ([email protected])
# Date: April 2011
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

import re
import optparse
Expand Down
4 changes: 3 additions & 1 deletion server/gff_twobit_query.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: gff_query_twobit.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""
usage: %prog gff_file twobit_file [output_file]
Expand Down
3 changes: 3 additions & 0 deletions server/parse_variant_counts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""Parse output from count_variants.py"""

Expand Down
4 changes: 4 additions & 0 deletions server/progresstracker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

"""Tracking and logging progress and reporting metadata during processing"""

import simplejson as json
Expand Down
4 changes: 3 additions & 1 deletion server/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: setup.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

# A setup script to install the _twobit module
# ---
Expand Down
6 changes: 3 additions & 3 deletions server/utils/bed.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/python
# Filename: bed.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

# A BED file parser
# ---
# This code is part of the Trait-o-matic project and is governed by its license.

from warnings import warn
from intervals import Interval, IntervalFile
Expand Down
8 changes: 4 additions & 4 deletions server/utils/codon_intersect.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/python
# Filename: codon_intersect.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

# A useful utility function for retrieving coding sequence fragments
# ---
# This code is part of the Trait-o-matic project and is governed by its license.

def codon_intersect(start, end, exons, codon_position):
"""Returns a tuple to express the intervals in genomic sequence
Expand Down Expand Up @@ -169,4 +169,4 @@ def codon_intersect(start, end, exons, codon_position):
coding_intervals.reverse()

# finally, return the stuff we want
return start_exon, end_exon, coding_intervals
return start_exon, end_exon, coding_intervals
6 changes: 3 additions & 3 deletions server/utils/fasta.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/python
# Filename: fasta.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

# A quick-and-dirty FASTA file parser
# based in part on the example at <http://www.dalkescientific.com/writings/NBN/parsing.html>
# ---
# This code is part of the Trait-o-matic project and is governed by its license.

import textwrap

Expand Down
6 changes: 3 additions & 3 deletions server/utils/gff.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/python
# Filename: gff.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

# A GFF file parser
# ---
# This code is part of the Trait-o-matic project and is governed by its license.

from warnings import warn
from intervals import Interval, IntervalFile
Expand Down
6 changes: 3 additions & 3 deletions server/utils/intervals.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/python
# Filename: intervals.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

# A basic set of functionality for files that specify intervals
# ---
# This code is part of the Trait-o-matic project and is governed by its license.

from warnings import warn
from bitset import *
Expand Down
6 changes: 3 additions & 3 deletions server/utils/omim.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/python
# Filename: omim.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

# A prototype OMIM parser
# ---
# This code is part of the Trait-o-matic project and is governed by its license.

class OMIMRecord(object):
def __init__(self, d):
Expand Down
5 changes: 4 additions & 1 deletion server/utils/substitution_matrix.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/python
# Filename: substitution_matrix.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

'''Takes two amino acids with single letter code,
returns the BLOSUM100 value for the pair.
Uses get-evidence/public_html/lib/blosum100.txt'''
Expand Down
4 changes: 3 additions & 1 deletion server/utils/transcript.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
# Filename: transcript.py
# This code is part of GET-Evidence.
# Copyright: see COPYING
# Authors: see git-blame(1)

class Transcript:
def __init__(self, transcript_data, column_specs = {}):
Expand Down

0 comments on commit 5155e87

Please sign in to comment.