Ejemplo n.º 1
0
Archivo: run.py Proyecto: nscherf/linus
        loader = dc.BiotracksLoader(
            biotracksPath,
            resampleTo=resampleTo,
            minTrackLength=skipSmallerThan,
        )
        if addState2 is not None:
            loaderState2 = dc.BiotracksLoader(
                addState2,
                resampleTo=resampleTo,
                minTrackLength=skipSmallerThan,
            )

    if svfPath is not None:
        print("Load from SVF...")
        loader = dc.SvfLoader(svfPath,
                              resampleTo=resampleTo,
                              minTrackLength=skipSmallerThan,
                              csvSeparator=csvSep)
        if addState2 is not None:
            loaderState2 = dc.SvfLoader(addState2,
                                        resampleTo=resampleTo,
                                        minTrackLength=skipSmallerThan,
                                        csvSeparator=csvSep)

    tracks, attributes, names = loader.get()

    # Start the track modifier that adjusts the data or adds attributes
    tm = dc.TrackModifier(tracks, attributes, names)

    scale = 1.
    if scaleToUnit is not None:
        extent = tm.getExtent()