Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shaman_bioblend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amine GHOZLANE
shaman_bioblend
Commits
dc6b231b
Commit
dc6b231b
authored
7 years ago
by
Amine GHOZLANE
Browse files
Options
Downloads
Patches
Plain Diff
Check if on shinypro to send mail
parent
e9e23877
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
alienTrimmerPF8contaminants.fasta
+0
-966
0 additions, 966 deletions
alienTrimmerPF8contaminants.fasta
shaman_bioblend.py
+7
-5
7 additions, 5 deletions
shaman_bioblend.py
with
8 additions
and
971 deletions
README.md
0 → 100644
+
1
−
0
View file @
dc6b231b
pip3 install bioblend python-daemon
This diff is collapsed.
Click to expand it.
alienTrimmerPF8contaminants.fasta
deleted
100755 → 0
+
0
−
966
View file @
e9e23877
This diff is collapsed.
Click to expand it.
shaman_bioblend.py
+
7
−
5
View file @
dc6b231b
...
@@ -35,6 +35,7 @@ import tarfile
...
@@ -35,6 +35,7 @@ import tarfile
import
zipfile
import
zipfile
import
lockfile
import
lockfile
import
datetime
import
datetime
import
socket
class
FullPaths
(
argparse
.
Action
):
class
FullPaths
(
argparse
.
Action
):
"""
Expand user- and relative-paths
"""
"""
Expand user- and relative-paths
"""
...
@@ -418,11 +419,12 @@ class galaxy(Thread):
...
@@ -418,11 +419,12 @@ class galaxy(Thread):
"
attachment; filename= {0}
"
"
attachment; filename= {0}
"
.
format
(
os
.
path
.
basename
(
result_file
)))
.
format
(
os
.
path
.
basename
(
result_file
)))
msg
.
attach
(
part
)
msg
.
attach
(
part
)
server
=
smtplib
.
SMTP
(
'
smtp.pasteur.fr
'
,
587
)
if
socket
.
gethostname
()
==
"
ShinyPro
"
:
server
.
starttls
()
server
=
smtplib
.
SMTP
(
'
smtp.pasteur.fr
'
,
587
)
text
=
msg
.
as_string
()
server
.
starttls
()
server
.
sendmail
(
fromaddr
,
toaddr
,
text
)
text
=
msg
.
as_string
()
server
.
quit
()
server
.
sendmail
(
fromaddr
,
toaddr
,
text
)
server
.
quit
()
#smtplib.SMTPSenderRefused:
#smtplib.SMTPSenderRefused:
#except IOError:
#except IOError:
# self.logger.error("Error cannot open {0}".format(result_file))
# self.logger.error("Error cannot open {0}".format(result_file))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment