Пример #1
0
# 1. Generates Metadata Dictionaries of GSE-SOFT Files

# Python imports
import argparse
import os
import requests
import re
from ftplib import FTP
from datetime import datetime
from PyVersion import PyCheckLenient
from ElapseTime import ElapseTime
from XZPickle import XZWrite

# Python Version Check
# Requirement: CPython 3.7.X
assert PyCheckLenient('CPython', '3', '7')

# CLI Generation and Parsing
cliParser = argparse.ArgumentParser()
cliParser.add_argument('-c',
                       required=False,
                       default=False,
                       action='store_true',
                       help='Clear data cache')
cliParser.add_argument('-n',
                       required=False,
                       default=None,
                       type=int,
                       help='Download N entries; integer-type')
cliOpts = cliParser.parse_args()
Пример #2
0
import os
from array import array
from math import isnan, isinf
from PyVersion import PyCheckLenient
from ElapseTime import ElapseTime
from StrUtils import FormatASCII
from MathUtils import Median
from SpringSupport import SpringSupport

# Java Imports
from gemma.gsec.util import SecurityUtil
from ubic.gemma.core.analysis.preprocess.batcheffects import BatchConfound

# Python Version Check
# Requirement: Jython 2.7.X (CPython 2.7.X Bypass added for PyCharm Debugging)
assert PyCheckLenient('Jython', '2', '7') or PyCheckLenient(
    'CPython', '2', '7')

# CLI Generation and Parsing
cliParser = argparse.ArgumentParser()
cliParser.add_argument('-u',
                       required=False,
                       default=None,
                       help='Gemma username')
cliParser.add_argument('-p',
                       required=False,
                       default=None,
                       help='Gemma password')
cliOpts = cliParser.parse_args()

# Declaring Global Variables