Skip to content

Commit

Permalink
Update my fork of the package
Browse files Browse the repository at this point in the history
  • Loading branch information
xapple committed Aug 26, 2012
1 parent 2cd4946 commit 532d458
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 135 deletions.
2 changes: 1 addition & 1 deletion INFO.url
Original file line number Diff line number Diff line change
@@ -1 +1 @@
URL=http://bbcf.epfl.ch/track
http://xapple.github.com/track/
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ track 1.1.0
===========

Copyright 2011 EPFL BBCF <[email protected]>
Written by <[email protected]>

track is a python module for reading and writing genomic data.

Expand All @@ -14,4 +15,4 @@ of this license is in the LICENSE.txt file.
Full documentation
==================

The full documentation can be found [on our website](http://bbcf.epfl.ch/track).
The full documentation can be found [on the website](http://xapple.github.com/track/).
9 changes: 3 additions & 6 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinxcontrib.googleanalytics']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['templates']
Expand Down Expand Up @@ -128,7 +128,7 @@
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
html_sidebars = {'**': 'bbcflinks.html'}
#html_sidebars = {'**': 'bbcflinks.html'}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand All @@ -150,7 +150,7 @@
html_show_sphinx = False

# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
html_show_copyright = False

# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
Expand All @@ -163,9 +163,6 @@
# Output file base name for HTML help builder.
htmlhelp_basename = 'trackdoc'

# Google analytics
googleanalytics_id = "UA-24167610-22"

# -- Options for LaTeX output --------------------------------------------------

# The paper size ('letter' or 'a4').
Expand Down
2 changes: 1 addition & 1 deletion doc/content/bugs.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##############
Reporting bugs
##############
Our `issue tracking system <https://github.com/bbcf/track/issues>`_ is found in the github repository. You are welcome to open a new ticket in it if you think you have found a bug. You will however need to create a github account if you don't already have one to open a new issue, sorry.
Our `issue tracking system <https://github.com/xapple/track/issues>`_ is found in the github repository. You are welcome to open a new ticket in it if you think you have found a bug. You will however need to create a github account if you don't already have one to open a new issue, sorry.
18 changes: 5 additions & 13 deletions doc/content/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,11 @@
Installation
############

To install you should download the latest source code from GitHub, either by going to::
To install you can simply type::

http://github.com/bbcf/track
$ sudo easy_install empty

and clicking on "Downloads", or by cloning the git repository with::
That's it. However, if that doesn't work because you don't have sufficient permissions, you can simply install it somewhere else (for instance in your home)::

$ git clone https://github.com/bbcf/track.git

Once you have the source code, run::

$ cd track
$ sudo python setup.py install

to install it. If you don't have permission to install it in the default directory, you can simply build the source in-place and use the package from the git repository::

$ python setup.py build_ext --inplace
$ cd ~
$ pip install -e git+https://github.com/xapple/track
2 changes: 1 addition & 1 deletion doc/content/licensing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Licensing
#########
The code is free and open source, licensed under the GNU General Public License version 3. You can download, copy or fork the source code on github:

https://github.com/bbcf/track/
https://github.com/xapple/track
5 changes: 0 additions & 5 deletions doc/templates/bbcflinks.html

This file was deleted.

2 changes: 1 addition & 1 deletion samples/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def create_tracks():
for track_name, track_info in sorted(samples[collection].items()):
print Color.ylw + "Creating track '" + track_info['name'] + "'" + Color.end
from_path = track_info[conversion_info['from']]
to_path = track_info[conversion_info['to']]
to_path = track_info[conversion_info['to']]
if os.path.exists(to_path): os.remove(to_path)
track.convert(from_path, to_path, assembly = conversion_info['assembly'])
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
description = 'Python package for reading and writing genomic data',
long_description = open('README.md').read(),
license = 'GNU General Public License 3.0',
url = 'http://bbcf.epfl.ch/track',
author = 'EPFL BBCF',
author_email = '[email protected]',
url = 'http://xapple.github.com/track/',
author = 'Lucas Sinclair',
author_email = '[email protected]',
classifiers = ['Topic :: Scientific/Engineering :: Bio-Informatics'],
packages = ['track',
'track.parse',
'track.serialize',
'track.test',
'track.manips',
],
package_data = {'track': ['genomes.db']},
ext_modules = [Extension('track.pyrow', ['src/pyrow.c'])],
scripts = ['track/track'],
install_requires = ['genomes'],
)
6 changes: 4 additions & 2 deletions track/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
from track.common import JournaledDict, natural_sort, int_to_roman, roman_to_int
from track.common import Color, pick_iterator_elements, get_next_item, is_gzip
from track.common import if_url_then_get_url
from track.genomes import Assembly

# Compiled modules #
from track.pyrow import SuperRow

# Extra modules #
from genomes import Assembly

# Constants #
special_tables = ('attributes', 'chrNames', 'types')
minimum_fields = ('start', 'end')
Expand Down Expand Up @@ -790,7 +792,7 @@ def find_column_name(self, synonyms, table_name=None):
if table_name is not None: fields = self.fields
else: fields = self._get_fields_of_table(table_name)
for name in synonyms:
if name in self.fields: return name
if name in fields: return name
return ''

#-----------------------------------------------------------------------------#
Expand Down
Binary file removed track/genomes.db
Binary file not shown.
99 changes: 0 additions & 99 deletions track/genomes.py

This file was deleted.

2 changes: 1 addition & 1 deletion track/serialize/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys

# Other modules #
from track.genomes import Assembly
from genomes import Assembly

# Variables #
serializers = {
Expand Down

0 comments on commit 532d458

Please sign in to comment.