Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for running without Internet access #389

Merged
merged 11 commits into from
Aug 17, 2023

Conversation

fa2k
Copy link
Contributor

@fa2k fa2k commented Jul 26, 2023

This change adds a section to usage.md to describe running offline, including how to get nf-validation working. #387

I have run nf-core lint and there aren't any issues with usage.md.

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/raredisease branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Ensure the test suite passes (nextflow run . -profile test_one_sample,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@github-actions
Copy link

This PR is against the master branch ❌

  • Do not close this PR
  • Click Edit and change the base to dev
  • This CI test will remain failed until you push a new commit

Hi @fa2k,

It looks like this pull-request is has been made against the fa2k/raredisease master branch.
The master branch on nf-core repositories should always contain code from the latest release.
Because of this, PRs to master are only allowed if they come from the fa2k/raredisease dev branch.

You do not need to close this PR, you can change the target branch to dev by clicking the "Edit" button at the top of this page.
Note that even after this, the test will continue to show as failing until you push a new commit.

Thanks again for your contribution!

@fa2k fa2k changed the base branch from master to dev July 26, 2023 08:55
@github-actions
Copy link

github-actions bot commented Jul 26, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit b201395

+| ✅ 151 tests passed       |+
#| ❔   4 tests were ignored |#
!| ❗   1 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in awsfulltest.yml: You can customise AWS full pipeline tests as required

❔ Tests ignored:

  • files_exist - File is ignored: conf/modules.config
  • files_unchanged - File ignored due to lint config: .github/PULL_REQUEST_TEMPLATE.md
  • files_unchanged - File ignored due to lint config: .github/workflows/linting.yml
  • files_unchanged - File ignored due to lint config: .gitignore or .prettierignore or pyproject.toml

✅ Tests passed:

Run details

  • nf-core/tools version 2.9
  • Run at 2023-08-17 09:24:34

@fa2k
Copy link
Contributor Author

fa2k commented Jul 26, 2023

Sorry I forgot something. Hold on for the next commit please.

Edit: I've amended the first commit and pushed this.

docs/usage.md Outdated
Here is an example command to download pipeline version 1.1.0 with singularity images:

```
nf-core download \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run that command with the latest version of nf-core (v2.9), I get:

 No such option: --container (Possible options: --container-cache-index, --container-library,     │
│ --container-system)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that. Seems they have changed the CLI since I downloaded nf-core tools

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just refer to the general docs on the website

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, makes sense. I will remove the example.

docs/usage.md Outdated
id '[email protected]'
}
```
This should go in your Nexflow confgiguration file, specified with `-c <YOURCONFIG>` when running the pipeline.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This should go in your Nexflow confgiguration file, specified with `-c <YOURCONFIG>` when running the pipeline.
This should go in your Nextflow configuration file, specified with `-c <YOURCONFIG>` when running the pipeline.

docs/usage.md Outdated
```
For running offline, you of course have to make all the reference data available locally, and specify `--fasta`, etc., see [above](#reference-files-and-parameters).

Contrary to the paragraph about Nextflow on the nf-core tools page, it is not possible to use the "-all" packaged version of Nextflow. The online version of nextflow is necessary to support the nextflow plugins used for this pipeline. Download instead the file called just `nextflow`. Nextflow will download its dependencies when it is run. Additionally, you need to download the nf-validation plugin explicitly:
Copy link
Contributor

@asp8200 asp8200 Jul 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure which homepage and packages you are referring to there. Perhaps you mean https://nf-co.re/tools ?

I didn't find any "paragraph about Nextflow" on https://nf-co.re/tools

EDIT: Perhaps you're referring to https://nf-co.re/docs/usage/offline#nextflow ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added another link, hope it makes sense like that

Co-authored-by: Ramprasad Neethiraj <[email protected]>
@fa2k
Copy link
Contributor Author

fa2k commented Jul 26, 2023

Sorry about all these problems, and thanks for the suggestions.

Copy link
Collaborator

@ramprasadn ramprasadn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, @fa2k! Thanks for adding this!

LGTM! 🚀

@ramprasadn ramprasadn linked an issue Jul 26, 2023 that may be closed by this pull request
@ramprasadn ramprasadn merged commit cf78b22 into nf-core:dev Aug 17, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nf-validation makes it difficult to run without Internet access
4 participants