Skip to content

Commit f080c09

Browse files
authored
Merge pull request #3 from genepattern/Rename
Updating name to ExampleModule
2 parents aa315b7 + 3b22f4d commit f080c09

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
BSD 3-Clause License
33

4-
Copyright (c) 2015-2018, Regents of the University of California & Broad Institute
4+
Copyright (c) 2015-2021, Regents of the University of California & Broad Institute
55
All rights reserved.
66

77
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# ABasicModule
2-
This is a basic GenePattern module written in Python 3. It can be taken as a "blank canvas" for future modules.
1+
# ExampleModule
2+
This is an example GenePattern module written in Python 3. It can be used as a template for future modules.

after_you_are_happy_with_your_code_READ_THIS_LIKE_NOW.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ https://docs.google.com/document/d/1QwpCHFFVAqmPovs515WJujeZuN_91nciK7q-ZDKq6mI/
88
Summary:
99

1010
#Starting a new Python module from scratch:
11-
git clone https://github.com/genepattern/ABasicModule.git
11+
git clone https://github.com/genepattern/ExampleModule.git
1212

1313
# Structure of the blank_canvas_module
14-
*probably to be called "ABasicModule" to be consistent with the docs and to make sure when sorted alphabetically it shows up at or near the top.*
14+
*probably to be called "ExampleModule" to be consistent with the docs and to make sure when sorted alphabetically it shows up at or near the top.*
1515
- after_you_are_happy_with_your_code_READ_THIS_LIKE_NOW.txt
1616
- build.xml
1717
- data/
@@ -42,7 +42,7 @@ Before you begin: You may have already done some of these steps, that's okay, ke
4242
3. Look at the list of LSIDs and add a new entry to the List of modules and visualizers:
4343
https://github.com/genepattern/common_module_code/blob/master/module.lsid.registry
4444
- txt2odf became: `LSID=urn\:lsid\:broad.mit.edu\:cancer.software.genepattern.module.analysis\:00372\:1.1.0`
45-
4. Make sure the manifest file is in the top-most directory (e.g., txt2odf/) -- You may need to remove the manifest that was created for ABasicModule
45+
4. Make sure the manifest file is in the top-most directory (e.g., txt2odf/) -- You may need to remove the manifest that was created for ExampleModule
4646
- Double check that the quality has been set to production (as opposed to development, since this module is set to be released), i.e., "quality=production"
4747
5. Open build.xml and modify the second line "name=**INSERT_MODULE_NAME_HERE** (in this case it is txt2odf)
4848
6. Open doc.html in a text editor and modify line 4, url=**INSERT_DOCUMENTATION_URL_HERE** to know what address to put there, follow these steps:

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project basedir="" default="create-zip" name="ABasicModule">
2+
<project basedir="" default="create-zip" name="ExampleModule">
33
<property name="dirOffset" value="../common_module_code" />
44
<import file="${dirOffset}/commontargets.xml" />
55

gpunit/basic_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Note: this test uses a custom diff command
88
#
99

10-
name: "ABasicModule - Basic test"
11-
module: ABasicModule
10+
name: "ExampleModule - Basic test"
11+
module: ExamplModule
1212
params:
1313
filename: "../data/data_placeholder.txt"
1414
add_custom_message: "True"

manifest

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
#ABasicModule
1+
#ExampleModule
22
#Tue May 01 20:52:13 UTC 2018
33
JVMLevel=
4-
LSID=urn\:lsid\:broad.mit.edu\:cancer.software.genepattern.module.analysis\:00374\:1.0
4+
LSID=urn\:lsid\:broad.mit.edu\:cancer.software.genepattern.module.analysis\:00374\:2.0
55
author=Edwin F. Juarez;UCSD - Mesirov Lab
6-
categories=Administration
7-
commandLine=<python_3.6> <libdir>ABasicModule.py -f <filename> -a <add_custom_message> -m <message_to_add> -o <output_filename>
6+
categories=administration
7+
commandLine=<python_3.6> <libdir>ExampleModule.py -f <filename> -a <add_custom_message> -m <message_to_add> -o <output_filename>
88
job.docker.image=genepattern/docker-python36:0.4
99
cpuType=any
10-
description=This is a basic GenePattern module written in Python 3. It can be taken as a "blank canvas" for future modules. It reads a file and potentially adds a
10+
description=This is an exmaple 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 tesxt
1111
fileFormat=txt
1212
language=Python
13-
name=ABasicModule
13+
name=ExampleModule
1414
os=any
1515
p1_MODE=IN
1616
p1_TYPE=FILE
@@ -28,7 +28,7 @@ p1_value=
2828
p2_MODE=
2929
p2_TYPE=TEXT
3030
p2_default_value=False
31-
p2_description=Wether or not to add a custom message
31+
p2_description=Whether or not to add a custom message
3232
p2_fileFormat=
3333
p2_flag=-a
3434
p2_name=add_custom_message
@@ -67,6 +67,6 @@ p4_value=
6767
privacy=public
6868
quality=production
6969
taskDoc=doc.html
70-
taskType=Administration
71-
userid=edjuaro
72-
version=Initial version
70+
taskType=administration
71+
userid=bhill@broadinstitute.org
72+
version=Renaming as ExampleModule
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ABasicModule_functions import *
1+
from ExampleModule_functions import *
22
import argparse
33
import humanfriendly
44
from timeit import default_timer as timer
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
TASKLIB = os.path.join(ROOT, 'src/')
88
INPUT_FILE_DIRECTORIES = os.path.join(ROOT, 'data/')
99

10-
command_line = "python "+TASKLIB+"ABasicModule.py"\
10+
command_line = "python "+TASKLIB+"ExampleModule.py"\
1111
+ " -f " + INPUT_FILE_DIRECTORIES+"data_placeholder.txt"\
1212
+ " -a True"\
1313
+ ' -m "This message has been added."'\

0 commit comments

Comments
 (0)