Skip to content

Commit

Permalink
Tries to Fix #18
Browse files Browse the repository at this point in the history
  • Loading branch information
basti committed Jan 3, 2019
1 parent e1db4c2 commit f3b93f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/3.1_create_gtf/Modules/Ensembl/GTFGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ def reformat_to_gff(self, activity, release):

@staticmethod
def generate_additional_information(gene_id, activity):

# helper method to concat activity information to string
print(gene_id)
if gene_id.startswith("ID=regulatory_region:"):
gene_id = 'ID "'+gene_id.split(':')[1]+'"'
gene_id = 'gene_id "'+gene_id.split(':')[1]+'"'
elif gene_id.startswith("ID=E"):
gene_id = 'gene_id "'+gene_id.split('=')[1]+'"'

activity_string = 'activity "'+', '.join(activity)+'"'

# helper method to concat activity information to string
return gene_id+'; '+activity_string

def generate_activity_list(self, activity, index):
Expand Down
Empty file modified bin/3.1_create_gtf/Modules/ucsc/bigBedToBed
100644 → 100755
Empty file.
Binary file not shown.

0 comments on commit f3b93f2

Please sign in to comment.