-
Notifications
You must be signed in to change notification settings - Fork 29
Improve contributing tutorial documentation #486
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,18 @@ SPRAS contributions: | |
| or `10 minutes to pandas | ||
| <https://pandas.pydata.org/pandas-docs/stable/user_guide/10min.html>`__ | ||
|
|
||
|
|
||
|
|
||
| Before getting started, verify your environment is ready with these checks: | ||
|
|
||
| .. code:: bash | ||
|
|
||
| docker --version | ||
| docker run hello-world | ||
| docker login | ||
| conda --version | ||
| git --version | ||
|
|
||
| ************************************************* | ||
| Step 0: Fork the repository and create a branch | ||
| ************************************************* | ||
|
|
@@ -202,8 +214,9 @@ and explore the nodes and interactome. | |
| .. code:: python | ||
|
|
||
| > from spras.dataset import Dataset | ||
| > dataset_dict = {'label': 'data0', 'node_files': ['node-prizes.txt', 'sources.txt', 'targets.txt'], 'edge_files': ['network.txt'], 'other_files': [], 'data_dir': 'input'} | ||
| > data = Dataset(dataset_dict) | ||
| > from spras.config.dataset import DatasetSchema | ||
| > dataset_schema = DatasetSchema(label='data0', node_files=['node-prizes.txt', 'sources.txt', 'targets.txt'], edge_files=['network.txt'], other_files=[], data_dir='input') | ||
| > data = Dataset(dataset_schema) | ||
| > data.node_table.head() | ||
| NODEID prize active sources targets | ||
| 0 C 5.7 True NaN True | ||
|
|
@@ -416,6 +429,16 @@ branch and create a pull request. Make sure to commit all of the new and | |
| modified files and push them to the ``local-neighborhood`` branch on | ||
| your fork. | ||
|
|
||
|
|
||
| .. note:: | ||
|
|
||
| If you are using HTTPS to push and your commit touches files in | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we just explicitly say for developers to use SSH to push to SPRAS in the contributing guide? And then add a warning that if you use https the issues you mentioned will happen. |
||
| ``.github/workflows/``, your PAT must have both ``repo`` and | ||
| ``workflow`` scopes. A PAT with ``repo`` scope only will be rejected | ||
| with a non-obvious error. SSH push works without this restriction. | ||
|
|
||
|
|
||
|
|
||
| The SPRAS maintainers will review the pull request and provide feedback | ||
| and suggested changes. If you are not already in communication with | ||
| them, you can open a `GitHub issue | ||
|
|
@@ -425,6 +448,8 @@ feedback. However, once the pull request has been approved, it will | |
| ``main`` branch of the fork stays synchronized with the ``main`` branch | ||
| of the main SPRAS repository. | ||
|
|
||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we remove these new white space lines? |
||
|
|
||
| *********************************************************************** | ||
| General steps for contributing a new pathway reconstruction algorithm | ||
| *********************************************************************** | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we also add a check to make sure SPRAS conda env is ready?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python -c "import spras; print('SPRAS import successful')" is what is in the spras tutorial.