Conda Create Exercise (breakout)
15 Minutes
We’ve covered the basics of Conda, including how to create environments, as well as activate and deactivate them. We’ll use those same ideas in this exercise to create a conda environment with all of the software that we’ve used so far.
In this exercise, we’ll use a special tool that enhances Conda, called Mamba. It is used for environment creation, so you will use it in place of conda create
in this exercise.
Instructions:
- One group member should share their screen in the breakout room. If nobody volunteers, a helper may randomly select someone.
- The group members should discuss the exercise and work together to find a solution.
- When a solution is found DO NOT have all users create the environment. Instead, choose only a few learners in each group to complete this exercise. We do not want to overwhelm the AWS instance.
- Use
mamba
to create an environment with all of the software that we used today:
- cutadapt
- fastqc
- multiqc
- star
- rsem
- Use two channels when building the environment:
Hint: The tool mamba
is a drop-in replacement for conda create
and similar commands. It is powerful and fast, which allows us to easily replicate our whole environment from today. conda create
can be very slow or uncooperative when creating environments with certain software combinations, and mamba
helps us get around that in this case. The command is exactly the same as a conda create
command, e.g.:
mamba create -n <env-name> -c <channel> <package1> ...
LS0tCnRpdGxlOiAiRGF5IDIgLSBCcmVha291dCAwNCIKYXV0aG9yOiAiVU0gQmlvaW5mb3JtYXRpY3MgQ29yZSIKb3V0cHV0OgogICAgICAgIGh0bWxfZG9jdW1lbnQ6CiAgICAgICAgICAgIGluY2x1ZGVzOgogICAgICAgICAgICAgICAgaW5faGVhZGVyOiBoZWFkZXIuaHRtbAogICAgICAgICAgICB0aGVtZTogcGFwZXIKICAgICAgICAgICAgZmlnX2NhcHRpb246IHRydWUKICAgICAgICAgICAgbWFya2Rvd246IEdGTQogICAgICAgICAgICBjb2RlX2Rvd25sb2FkOiB0cnVlCi0tLQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgpib2R5eyAvKiBOb3JtYWwgICovCiAgICAgIGZvbnQtc2l6ZTogMTRwdDsKICB9CnByZSB7CiAgZm9udC1zaXplOiAxMnB0Cn0KPC9zdHlsZT4KCjxicj4KCiMjIENvbmRhIENyZWF0ZSBFeGVyY2lzZSAoYnJlYWtvdXQpCgo8YnI+CgoqKjE1IE1pbnV0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