Skip to content

Commit

Permalink
fix: incorporate miscellaneous fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
haowang-bioinfo committed Dec 3, 2022
1 parent 06aa71f commit f2d1569
Show file tree
Hide file tree
Showing 2 changed files with 1,357 additions and 1,357 deletions.
4 changes: 2 additions & 2 deletions code/modelCuration/getCompFromUniprotCellAtlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


# load Human-GEM gene annotation file
HumanGenes_tsv = pd.read_table("~/Documents/GitHub/Human-GEM/model/genes.tsv")
HumanGenes_tsv = pd.read_table("../../model/genes.tsv")
Human_genes = HumanGenes_tsv['genes'].to_list()
Human_proteins = HumanGenes_tsv['geneUniProtID'].to_list()

Expand Down Expand Up @@ -124,7 +124,7 @@
elif not pd.isna(geneComps_from_swissprot[i]) and geneComps_from_cell_atlas[gene] != []:
union = set(geneComps_from_swissprot[i].split(';')+ geneComps_from_cell_atlas[gene])
out_list = list(union)
source[i] = 'SwissProt&CellAtlas'
source[i] = 'SwissProt;CellAtlas'
if 'Mitochondria' not in geneComps_from_swissprot[i].split(';') and 'Inner mitochondria' in geneComps_from_swissprot[i].split(';'):
if 'Mitochondria' in geneComps_from_cell_atlas[gene]:
out_list.remove('Mitochondria')
Expand Down
Loading

0 comments on commit f2d1569

Please sign in to comment.