Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e54502

Browse files
committed
Updating for next release based on check list
1 parent b1395c2 commit 7e54502

File tree

8 files changed

+48
-33
lines changed

8 files changed

+48
-33
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ USER root
1818
RUN mkdir /ExampleModule \
1919
&& chown gpuser /ExampleModule
2020

21-
#switch to non-root before exiting so that we don't run as root on the server.
21+
#switch to non-root before exiting so that we don't run as root on the server, and copy all of the src files into the container.
2222
USER gpuser
2323
COPY src/*.py /ExampleModule/
2424

LICENSE

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
1+
----------------------------------------------------------------
2+
*** GENEPATTERN LICENSE AGREEMENT ***
13

2-
BSD 3-Clause License
4+
----------------------------------------------------------------
5+
The GenePattern ExampleModule is distributed under the following BSD-style license:
36

4-
Copyright (c) 2015-2021, Regents of the University of California & Broad Institute
5-
All rights reserved.
7+
Copyright (c) 2003-2021 Regents of the University of California and Broad Institute. All rights reserved.
68

7-
Redistribution and use in source and binary forms, with or without
8-
modification, are permitted provided that the following conditions are met:
9+
Redistribution and use in source and binary forms, with or without modification,
10+
are permitted provided that the following conditions are met:
911

10-
* Redistributions of source code must retain the above copyright notice, this
11-
list of conditions and the following disclaimer.
12+
1. Redistributions of source code must retain the above copyright notice,
13+
this list of conditions and the following disclaimer.
1214

13-
* Redistributions in binary form must reproduce the above copyright notice,
14-
this list of conditions and the following disclaimer in the documentation
15-
and/or other materials provided with the distribution.
15+
2. Redistributions in binary form must reproduce the above copyright notice,
16+
this list of conditions and the following disclaimer in the documentation
17+
and/or other materials provided with the distribution.
1618

17-
* Neither the name of the copyright holder nor the names of its
18-
contributors may be used to endorse or promote products derived from
19-
this software without specific prior written permission.
19+
3. Neither the names of the Broad Institute, Inc., Massachusetts Institute of Technology
20+
nor the names of its contributors may be used to endorse or promote products derived
21+
from this software without specific prior written permission.
22+
23+
THIS SOFTWARE IS PROVIDED AS IS. BROAD AND MIT MAKE NO EXPRESS OR IMPLIED
24+
REPRESENTATIONS OR WARRANTIES OF ANY KIND REGARDING THE SOFTWARE AND COPYRIGHT,
25+
INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
26+
PARTICULAR PURPOSE, CONFORMITY WITH ANY DOCUMENTATION, NONINFRINGEMENT, OR THE
27+
ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE. IN NO EVENT SHALL
28+
BROAD, MIT, THE COPYRIGHT HOLDERS, OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
29+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
30+
BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
31+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
32+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF, HAVE REASON
34+
TO KNOW, OR IN FACT SHALL KNOW OF THE POSSIBILITY OF SUCH DAMAGE.
35+
36+
If, by operation of law or otherwise, any of the aforementioned warranty disclaimers
37+
are determined inapplicable, your sole remedy, regardless of the form of action,
38+
including, but not limited to, negligence and strict liability, shall be replacement
39+
of the software with an updated version if one exists.
2040

21-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

docs/v2/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
**Contact**: [Forum Link](https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!forum/genepattern-help)
1313

1414
<!-- All modules have a version number associated with them (the last number on the LSID) that is used to differentiate between modules of the same name for reproducibility purposes. However, for publicly released software packages that are wrapped as GenePattern modules, sometimes this version number will be different that the version number of the algorithm itself (e.g. TopHat v7 in GenePattern uses version 2.0.8b of the TopHat algorithm). Since this information is often important to the user, the algorithm version field is an optional attribute that can be used to specify this different version number. Remove this field if not applicable -->
15-
**Algorithm Version**: OPTIONAL
15+
**Algorithm Version**: _OPTIONAL_ and Not applicable for this particular module
1616

1717
<!-- Why use this module? What does it do? If this is one of a set of modules, how does this module fit in the set? How does it work? write overview as if you are explaining to a novice. Include any links or images which would serve to clarify -->
1818
## Summary
@@ -25,9 +25,9 @@ It can be used as a template for future modules. It reads a file and potentially
2525

2626
<!-- links to your source repository **specific to the release version**, the Docker image used by the module (as specified in your manifest), and (if applicable) the sha link to the Dockerfile used to build your Docker image -->
2727
## Source Links
28-
* [The GenePattern ExampleModule v2 source repository](https://github.com/genepattern/ExampleModule/tree/v1)
29-
* ExampleModule v2 uses the [genepattern/docker-python36:0.4 Docker image](https://hub.docker.com/layers/25223888/genepattern/docker-python36/0.4/images/sha256-c251b34fc4e862535a246f9d74d71a385549b0545f9989d289f160e543b54ca5?context=explore)
30-
* [The Dockerfile used to build that image is here.](https://github.com/genepattern/docker-python36/blob/0.5/Dockerfile)
28+
* [The GenePattern ExampleModule v2 source repository](https://github.com/genepattern/ExampleModule/tree/v1.3)
29+
* ExampleModule v2 uses the [genepattern/example-module:2 Docker image](https://hub.docker.com/layers/150060459/genepattern/example-module/2/images/sha256-ae4fffff67672e46b251f954ad226b7ad99403c456c1c19911b6ac82f1a27f2f?context=explore)
30+
* [The Dockerfile used to build that image is here.](https://github.com/genepattern/ExampleModule/blob/v1.3/Dockerfile)
3131

3232
## Parameters
3333
<!-- short description of the module parameters and their default values, as well as whether they are required -->
@@ -59,16 +59,16 @@ It can be used as a template for future modules. It reads a file and potentially
5959
<!-- provide links to example data so that users can see what input & output should look like and so that they and we can use it to test -->
6060

6161
Input:
62-
[data_placeholder.txt](https://github.com/genepattern/ExampleModule/blob/v1/data/data_placeholder.txt)
62+
[data_placeholder.txt](https://github.com/genepattern/ExampleModule/blob/v1.3/data/data_placeholder.txt)
6363

6464
Output:
65-
[created_file_ground_truth.txt](https://github.com/genepattern/ExampleModule/blob/v1/gpunit/output/basic_test/created_file_ground_truth.txt)
65+
[created_file_ground_truth.txt](https://github.com/genepattern/ExampleModule/blob/v1.3/gpunit/output/basic_test/created_file_ground_truth.txt)
6666

6767

6868
## Requirements
6969
<!--This section is typically used to list any special requirements for running the module, such as, language/operating system requirements and Docker images. -->
7070

71-
Requires the [genepattern/docker-python36:0.4](https://hub.docker.com/layers/25223888/genepattern/docker-python36/0.4/images/sha256-c251b34fc4e862535a246f9d74d71a385549b0545f9989d289f160e543b54ca5?context=explore) Docker image.
71+
Requires the [genepattern/example-module:2 Docker image](https://hub.docker.com/layers/150060459/genepattern/example-module/2/images/sha256-ae4fffff67672e46b251f954ad226b7ad99403c456c1c19911b6ac82f1a27f2f?context=explore) Docker image.
7272

7373
## License
7474

@@ -79,5 +79,5 @@ Requires the [genepattern/docker-python36:0.4](https://hub.docker.com/layers/252
7979

8080
| Version | Release Date | Description |
8181
----------|--------------|---------------------------------------------|
82-
| 2 | May 17, 2021 | Added all required GP-Team Module release requirements and renamed as ExampleModule, from ABasicModule. |
82+
| 1.3 | May 17, 2021 | Added all required GP-Team Module release requirements and renamed as ExampleModule, from ABasicModule. |
8383
| 1 | May 1, 2018 | Initial version for team use. |
File renamed without changes.

manifest

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ commandLine=/ExampleModule/ExampleModule.py -f <filename> -a <add_custom_message
99
#commandLine when run with source in module zip/taskLib:
1010
#commandLine=<python_3.6> <libdir>ExampleModule.py -f <filename> -a <add_custom_message> -m <message_to_add> -o <output_filename>
1111
job.docker.image=genepattern/example-module:2
12+
src.repo=https://github.com/genepattern/ExampleModule/tree/v1.3
1213
cpuType=any
1314
description=This is an example GenePattern module written in Python 3. It can be used as a template for future modules. It reads a file and potentially adds a line of text
1415
fileFormat=txt
@@ -72,4 +73,4 @@ quality=production
7273
taskDoc=doc.html
7374
taskType=administration
7475
75-
version=Renaming as ExampleModule
76+
version=Renaming as ExampleModule and updating to latest release standards

src/ExampleModule.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
3+
#NB - all of these import statements should specify their versions and be executed in a separate script at Docker build time.
24
from ExampleModule_functions import *
35
import argparse
46
import humanfriendly

src/ExampleModule_command_line_call.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
#NB - all of these import statements should specify their versions and be executed in a separate script at Docker build time.
23
import os
34
import sys
45
from subprocess import call

src/ExampleModule_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
#NB - all of these import statements should specify their versions and be executed in a separate script at Docker build time.
23
# Here is where I'd put my functions, if I had any!
34
def empty_function():
45
return

0 commit comments

Comments
 (0)