Skip to content

Commit

Permalink
Merge pull request deepchem#3890 from KitVB/docfix
Browse files Browse the repository at this point in the history
Doctest Fix for SAMLoader, BAMLoader, CRAMLoader
  • Loading branch information
rbharath authored Mar 11, 2024
2 parents 0345f7e + 2722a22 commit 4c39f0f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deepchem/data/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
except ModuleNotFoundError:
pass

try:
import pysam
except ImportError:
pass

logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -1909,7 +1914,6 @@ class SAMLoader(DataLoader):
--------
>>> from deepchem.data.data_loader import SAMLoader
>>> import deepchem as dc
>>> import pytest
>>> inputs = 'deepchem/data/tests/example.sam'
>>> data = SAMLoader()
>>> output = data.create_dataset(inputs)
Expand Down Expand Up @@ -1998,7 +2002,6 @@ class BAMLoader(DataLoader):
--------
>>> from deepchem.data.data_loader import BAMLoader
>>> import deepchem as dc
>>> import pytest
>>> inputs = 'deepchem/data/tests/example.bam'
>>> data = BAMLoader()
>>> output = data.create_dataset(inputs)
Expand Down Expand Up @@ -2087,7 +2090,6 @@ class CRAMLoader(DataLoader):
--------
>>> from deepchem.data.data_loader import CRAMLoader
>>> import deepchem as dc
>>> import pytest
>>> inputs = 'deepchem/data/tests/example.cram'
>>> data = CRAMLoader()
>>> output = data.create_dataset(inputs)
Expand Down

0 comments on commit 4c39f0f

Please sign in to comment.