Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
contig_info
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GIPhy
contig_info
Commits
07e3a168
Commit
07e3a168
authored
4 years ago
by
Alexis CRISCUOLO
Browse files
Options
Downloads
Patches
Plain Diff
2.0
parent
42ecf6e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contig_info.sh
+14
-3
14 additions, 3 deletions
contig_info.sh
with
14 additions
and
3 deletions
contig_info.sh
+
14
−
3
View file @
07e3a168
...
...
@@ -20,8 +20,7 @@
# Contact: #
# Alexis Criscuolo alexis.criscuolo@pasteur.fr #
# Genome Informatics & Phylogenetics (GIPhy) giphy.pasteur.fr #
# Bioinformatics and Biostatistics Hub research.pasteur.fr/en/team/hub-giphy #
# USR 3756 IP CNRS research.pasteur.fr/team/bioinformatics-and-biostatistics-hub #
# Bioinformatics and Biostatistics Hub research.pasteur.fr/team/bioinformatics-and-biostatistics-hub #
# Dpt. Biologie Computationnelle research.pasteur.fr/department/computational-biology #
# Institut Pasteur, Paris, FRANCE research.pasteur.fr #
# #
...
...
@@ -94,6 +93,18 @@ fi
# #
#############################################################################################################
#############################################################################################################
# #
# ================ #
# = CONSTANTS = #
# ================ #
# #
# = temp directory ======================================================================================= #
# #
TEMP_DIR
=
${
TMPDIR
:-
/tmp
}
;
# #
#############################################################################################################
#############################################################################################################
# #
# ================ #
...
...
@@ -104,7 +115,7 @@ fi
# returns a random file name within /tmp/ #
# #
randomfile
()
{
rdmf
=
/tmp
/
$RANDOM
;
while
[
-e
$rdmf
]
;
do
rdmf
=
/tmp
/
$RANDOM
;
done
rdmf
=
$TEMP_DIR
/
$RANDOM
;
while
[
-e
$rdmf
]
;
do
rdmf
=
$TEMP_DIR
/
$RANDOM
;
done
echo
$rdmf
;
}
# #
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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