-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
havugimana MMC ppi, starting to rearrange data files
- Loading branch information
Showing
4 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# import the module for the super-class PPI | ||
from .ppi import PPI | ||
|
||
|
||
class Havugimana(PPI): | ||
""" | ||
The PPI network from the Havugimana paper: | ||
A census of human soluble protein complexes | ||
http:https://www.ncbi.nlm.nih.gov/pubmed/22939629 | ||
""" | ||
|
||
def __init__(self, filename, sql_connection): | ||
""" | ||
Creates a new PPI network, with the given filename and sql | ||
connection object. | ||
Parameter: | ||
- filename: Filename of the ppi network file. | ||
- sql_connection: SQL connection object for the database, | ||
into which the PPI network is to be | ||
imported. | ||
""" | ||
# create super class with all necessary paramenters | ||
PPI.__init__(self, filename, sql_connection, "havu", | ||
"Gene1", "Gene2", "uniprot") | ||
|
||
self.has_header = True | ||
self.file_field_seperator = '\t' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters