diff options
author | hakangunturkun | 2020-09-07 22:35:17 -0500 |
---|---|---|
committer | hakangunturkun | 2020-09-07 22:35:17 -0500 |
commit | a637889f13c2151303998e411dc81f3196a974f6 (patch) | |
tree | f593bb635e759889109504405d2abc3e31af9008 /utility/topGene_step2_cnt_sentences.py | |
parent | 35179dec9aa1926102ad2ddbbd5b8ad2882be92e (diff) | |
download | genecup-a637889f13c2151303998e411dc81f3196a974f6.tar.gz |
last version
Diffstat (limited to 'utility/topGene_step2_cnt_sentences.py')
-rwxr-xr-x | utility/topGene_step2_cnt_sentences.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/topGene_step2_cnt_sentences.py b/utility/topGene_step2_cnt_sentences.py index b05aa7a..9791fef 100755 --- a/utility/topGene_step2_cnt_sentences.py +++ b/utility/topGene_step2_cnt_sentences.py @@ -12,7 +12,7 @@ def findWholeWord(w): return re.compile(r'\b({0})\b'.format(w), flags=re.IGNORECASE).search def getSentences(query, genes): - abstracts = os.popen("esearch -db pubmed -query " + query + " | efetch -format uid |fetch-pubmed -path /run/media/hao/PubMed/Archive/ | xtract -pattern PubmedArticle -element MedlineCitation/PMID,ArticleTitle,AbstractText|sed \"s/-/ /g\"").read() + abstracts = os.popen("esearch -db pubmed -query " + query + " | efetch -format uid |fetch-pubmed | xtract -pattern PubmedArticle -element MedlineCitation/PMID,ArticleTitle,AbstractText|sed \"s/-/ /g\"").read() gene_syno=genes.split("|") symb=gene_syno[0] out=str() |