Skip to content

Commit 553b14b

Browse files
authored
Merge pull request #1620 from merenlab/release-candidate
anvi'o v7, "hope"
2 parents 38af28d + fe9bdd4 commit 553b14b

28 files changed

Lines changed: 80 additions & 62 deletions

AUTHORS.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ Developers and contributors at the University of Chicago
44
A. Murat Eren (a.murat.eren at gmail dot com)
55
Evan Kiefl (kiefl.evan at gmail dot com)
66
Iva Veseli (iveseli at uchicago.edu)
7+
Samuel Miller (samuelmiller at uchicago.edu)
78
Matthew Schechter (mschechter at uchicago dot edu)
89
Isaac Fink (iafink at uchicago dot edu)
10+
Matthew Lawrence Klein (mtt.l.kln at gmail dot com)
911
Andrea Watson (andreawatson at uchicago dot edu)
10-
Emily Fogarty (efogarty at uchicago dot edu)
1112
Florian Trigodet (trigodet dot florian at gmail dot com)
13+
Emily Fogarty (efogarty at uchicago dot edu)
1214

1315
===============================================================================
1416
Developers and contributors at large
@@ -27,10 +29,10 @@ Gökmen Görgen Radity, Inc Switzerland
2729
Doğan Can Kilment Makroser, Inc. Turkey
2830
Srinidhi Varadharajan University of Oslo Norway
2931
Amy Willis University of Washington United States
32+
Mike Lee NASA Ames Research Center United States
3033
Xabier Vázquez-Campos University of New South Wales Australia
3134
John Eppley University of Hawaiʻi at Mānoa United States
3235
S. Çağlar Onur Google, Inc. United States
33-
Mike Lee NASA Ames Research Center United States
3436
Dan Utter Harvard University United States
3537
Tom Delmont Genoscope France
3638
Finlay Maguire Dalhousie University Canada
@@ -52,7 +54,7 @@ Anvi'o is an open-source, community-driven project and the purpose of this file
5254
to mention names who contributed to its codebase. The file divides individuals into
5355
two main groups: (1) those who are currently employed at the University of Chicago
5456
and work on anvi'o as a part of their job description (hence they are ready to
55-
respond to technical questions or work on feature requests), and (2) those who
57+
respond to technical questions or consider feature requests), and (2) those who
5658
contribute (or have contributed) to the platform and help (or have helped) its
5759
progress from elsewhere. The order of names in this file follows the logic
5860
implemented at GitHub's contributors page at the following URL, which ranks

Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
# to clean up your docker (although please note that it will remove all existing containers
33
# and cached states):
44
#
5-
# docker rmi --force $(docker images -a --filter=dangling=true -q)
6-
# docker rm --force $(docker ps --filter=status=exited --filter=status=created -q)
7-
# docker system prune --force -a
5+
# docker rmi --force $(docker images -a --filter=dangling=true -q)
6+
# docker rm --force $(docker ps --filter=status=exited --filter=status=created -q)
7+
# docker system prune --force -a
88
#
99
# after that, you can start the build with the following:
1010
#
11-
# docker build -t meren/anvio:test-build .
11+
# BUILDKIT_PROGRESS=plain docker build -t meren/anvio:$ANVIO_VERSION .
12+
#
1213

13-
FROM continuumio/miniconda3:4.8.2
14-
ENV ANVIO_VERSION "6.2_master"
14+
FROM continuumio/miniconda3:4.9.2
15+
ENV ANVIO_VERSION "7"
1516

1617
RUN conda config --env --add channels bioconda
1718
RUN conda config --env --add channels conda-forge
@@ -28,9 +29,9 @@ ENV CONDA_DEFAULT_ENV anvioenv
2829
ENV CONDA_PREFIX /opt/conda/envs/anvioenv
2930

3031
RUN echo "conda activate anvioenv" >> ~/.bashrc
31-
SHELL ["/bin/bash", "-c"]
3232

3333
RUN conda install -y conda-build
34+
RUN conda install -y conda-verify
3435

3536
COPY conda-recipe /tmp/conda-recipe
3637

@@ -81,3 +82,7 @@ RUN Rscript -e 'install.packages(c("optparse"), repos="https://cran.rstudio.com"
8182
RUN echo "export PS1=\"\[\e[0m\e[47m\e[1;30m\] :: anvi'o v$ANVIO_VERSION :: \[\e[0m\e[0m \[\e[1;34m\]\]\w\[\e[m\] \[\e[1;32m\]>>>\[\e[m\] \[\e[0m\]\"" >> /root/.bashrc
8283

8384
CMD /bin/bash -l
85+
86+
# To test the build, you can run this:
87+
#
88+
# docker run --rm -it -v `pwd`:`pwd` -w `pwd` -p 8080:8080 meren/anvio:test-build

anvio/__init__.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
# unless you want to explode `bottle`:
1616
import pkg_resources
1717

18-
anvio_version = '6.2-master'
19-
anvio_codename = 'esther'
18+
anvio_version = '7'
19+
anvio_codename = 'hope' # after Hope E. Hopps, https://sivb.org/awards/student-awards/hope-e-hopps-award.html
20+
# see the release notes for details: https://github.com/merenlab/anvio/releases/tag/v7
2021

2122
anvio_version_for_help_docs = "main" if anvio_version.endswith('master') else anvio_version
2223

@@ -3098,15 +3099,15 @@ def get_version_tuples():
30983099

30993100

31003101
def print_version():
3101-
run.info("Anvi'o version", "%s (v%s)" % (__codename__, __version__), mc='green')
3102-
run.info("Profile DB version", __profile__version__)
3103-
run.info("Contigs DB version", __contigs__version__)
3104-
run.info("Pan DB version", __pan__version__)
3105-
run.info("Genome data storage version", __genomes_storage_version__)
3106-
run.info("Auxiliary data storage version", __auxiliary_data_version__)
3107-
run.info("Structure DB version", __structure__version__)
3108-
run.info("Kegg Modules DB version", __kegg_modules_version__)
3109-
run.info("tRNA-seq DB version", __trnaseq__version__)
3102+
run.info("Anvi'o", "%s (v%s)" % (__codename__, __version__), mc='green', nl_after=1)
3103+
run.info("Profile database", __profile__version__)
3104+
run.info("Contigs database", __contigs__version__)
3105+
run.info("Pan database", __pan__version__)
3106+
run.info("Genome data storage", __genomes_storage_version__)
3107+
run.info("Auxiliary data storage", __auxiliary_data_version__)
3108+
run.info("Structure database", __structure__version__)
3109+
run.info("Metabolic modules database", __kegg_modules_version__)
3110+
run.info("tRNA-seq database", __trnaseq__version__, nl_after=1)
31103111

31113112

31123113
__version__, \

anvio/argparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ def get_anvio_epilogue(self):
4848

4949
if os.path.exists(os.path.join(os.path.dirname(docs.__file__), f"programs/{self.prog}.md")):
5050
if atty:
51-
epilog += f'''\n🍺 {attr('bold')}More on `{self.prog}`:{attr('reset')}\n\n {fg('blue') + program_help + attr('reset')}'''
51+
epilog += f'''\n🍺 {attr('bold')}More on `{self.prog}`:{attr('reset')}\n\n {fg('cyan') + program_help + attr('reset')}'''
5252
else:
5353
epilog += f'''\n🍺 More on `{self.prog}`:\n\n {program_help}'''
5454
else:
5555
epilog = ""
5656

5757
if atty:
58-
epilog += f'''\n\n🍻 {attr('bold')}All anvi'o programs and artifacts:{attr('reset')}\n\n {fg('blue') + general_help + attr('reset')}'''
58+
epilog += f'''\n\n🍻 {attr('bold')}All anvi'o programs and artifacts:{attr('reset')}\n\n {fg('cyan') + general_help + attr('reset')}'''
5959
else:
6060
epilog += f'''\n\n🍻 All anvi'o programs and artifacts:\n\n {general_help}'''
6161

anvio/data/interactive/charts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ <h3 class="modal-title" style="color: black;"><b>Search items</b></h3>
191191

192192

193193
<span class="settings-header">Genes</span>
194-
<p class="settings-section-info">Change colors of genes based on their functional annotations.</p>
194+
<p class="settings-section-info">Change colors of genes based on their functional annotations. You can also manually color genes temporarily. First, righ-click on a gene. It will add the gene into the list below with a default color. Then, you can use the color picker next to it to set a color manually. To see the effect of changing colors, you need to press the 'Redraw Gene Arrows' button.</p>
195195
<button type="button" class="btn btn-primary btn-xs" onclick="resetFunctionColors()" class="btn btn-outline-primary">Reset Function colors</button>
196196
<button type="button" class="btn btn-primary btn-xs" onclick="redrawArrows()" class="btn btn-outline-primary">Redraw Gene Arrows</button>
197197
<button type="button" class="btn btn-primary btn-xs" onclick="toggleUnmarkedGenes()" class="btn btn-outline-primary">Toggle Unmarked Gene Pickers</button>
29.8 KB
Loading
3.93 KB
Binary file not shown.

anvio/migrations/profile/v31_to_v32.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def migrate(db_path):
5757
progress.end()
5858

5959
if is_full_profile:
60-
run.info_single("Your profile db is now %s." % next_version, nl_after=1, nl_before=1, mc='green')
60+
run.info_single("Your profile db is now %s. We just added a bunch of new variables to the `self` table "
61+
"of your database. All good now." % next_version, nl_after=1, nl_before=1, mc='green')
6162
else:
6263
run.info_single("Your profile db is now version %s. But essentially nothing really happened to your "
6364
"database since it was a blank profile (which is OK, move along)." \

anvio/migrations/profile/v34_to_v35.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ def migrate(db_path):
5252
profile_db.disconnect()
5353

5454
progress.end()
55-
run.info_single("The profile database is now %s. This upgrade redefined the stored format of indels to "
56-
"provide a more robust working framework. Unfortunately, if you had indels, you don't anymore." \
57-
% (next_version), nl_after=1, nl_before=1, mc='green')
55+
run.info_single("The profile database is now %s. This upgrade redefined the stored format of INDELS to "
56+
"provide a more robust working framework. If you are upgrading this database from `v6`, "
57+
"you don't have anything to worry about. But if you were using the active branch of anvi'o, "
58+
"then you lost your INDELs now and you would need to re-profile your BAM files if you want "
59+
"them back :)" % (next_version), nl_after=1, nl_before=1, mc='green')
5860

5961

6062
if __name__ == '__main__':

anvio/scgdomainclassifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def init(self):
159159

160160
self.progress.update("Learning about the number of contigs databases in each domain subdirectory")
161161
for domain in self.SCG_domains:
162-
self.contigs_dbs[domain] = glob.glob(os.path.join(D(domain), '*'))
162+
self.contigs_dbs[domain] = glob.glob(os.path.join(D(domain), '*.db'))
163163

164164
if len(self.contigs_dbs[domain]) == 0:
165165
self.progress.end()

0 commit comments

Comments
 (0)