Skip to content

Commit 3cc9bec

Browse files
committed
refactor: remove command line interface
1 parent 65bd2a3 commit 3cc9bec

1 file changed

Lines changed: 0 additions & 75 deletions

File tree

main/como/proteomics_gen.py

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -218,80 +218,5 @@ async def proteomics_gen(
218218
to_bool_context(context_name, group_ratio, hi_group_ratio, groups)
219219

220220

221-
def _main():
222-
parser = argparse.ArgumentParser(
223-
prog="proteomics_gen.py",
224-
description="Description goes here",
225-
epilog="For additional help, please post questions/issues in the MADRID GitHub repo at "
226-
"https://github.com/HelikarLab/MADRID or email babessell@gmail.com",
227-
)
228-
parser.add_argument(
229-
"-c",
230-
"--config-file",
231-
type=str,
232-
required=True,
233-
dest="config_file",
234-
help="The configuration file for proteomics",
235-
)
236-
parser.add_argument(
237-
"-r",
238-
"--replicate-ratio",
239-
type=float,
240-
required=False,
241-
default=0.5,
242-
dest="rep_ratio",
243-
help="Ratio of replicates required for a gene to be considered active in that group",
244-
)
245-
parser.add_argument(
246-
"-b",
247-
"--batch-ratio",
248-
type=float,
249-
required=False,
250-
default=0.5,
251-
dest="group_ratio",
252-
help="Ratio of groups (batches or studies) required for a gene to be considered active in a context",
253-
)
254-
parser.add_argument(
255-
"-hr",
256-
"--high-replicate-ratio",
257-
type=float,
258-
required=False,
259-
default=0.5,
260-
dest="hi_rep_ratio",
261-
help="Ratio of replicates required for a gene to be considered high-confidence in that group",
262-
)
263-
parser.add_argument(
264-
"-hb",
265-
"--high-batch-ratio",
266-
type=float,
267-
required=False,
268-
default=0.5,
269-
dest="hi_group_ratio",
270-
help="Ratio of groups (batches or studies) required for a gene to be considered high-confidence in a context",
271-
)
272-
273-
parser.add_argument(
274-
"-q",
275-
"--quantile",
276-
type=int,
277-
required=False,
278-
default=25,
279-
dest="quantile",
280-
help="The quantile of genes to accept. This should be an integer from 0% (no proteins pass) "
281-
"to 100% (all proteins pass).",
282-
)
283-
args = parser.parse_args()
284-
asyncio.run(
285-
proteomics_gen(
286-
args.config_file,
287-
args.rep_ratio,
288-
args.group_ratio,
289-
args.hi_rep_ratio,
290-
args.hi_group_ratio,
291-
args.quantile,
292221
)
293222
)
294-
295-
296-
if __name__ == "__main__":
297-
_main()

0 commit comments

Comments
 (0)