Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alphafold/data/tools/hhblits.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def query(self, input_fasta_path: str) -> List[Mapping[str, Any]]:

logging.info('Launching subprocess "%s"', ' '.join(cmd))
process = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

with utils.timing('HHblits query'):
stdout, stderr = process.communicate()
Expand Down
2 changes: 1 addition & 1 deletion alphafold/data/tools/hhsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def query(self, a3m: str) -> str:

logging.info('Launching subprocess "%s"', ' '.join(cmd))
process = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
with utils.timing('HHsearch query'):
stdout, stderr = process.communicate()
retcode = process.wait()
Expand Down
2 changes: 1 addition & 1 deletion alphafold/data/tools/hmmbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _build_profile(self, msa: str, model_construction: str = 'fast') -> str:
])

logging.info('Launching subprocess %s', cmd)
process = subprocess.Popen(cmd, stdout=subprocess.PIPE,
process = subprocess.Popen(cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)

with utils.timing('hmmbuild query'):
Expand Down
2 changes: 1 addition & 1 deletion alphafold/data/tools/hmmsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def query_with_hmm(self, hmm: str) -> str:

logging.info('Launching sub-process %s', cmd)
process = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
with utils.timing(
f'hmmsearch ({os.path.basename(self.database_path)}) query'):
stdout, stderr = process.communicate()
Expand Down
2 changes: 1 addition & 1 deletion alphafold/data/tools/jackhmmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _query_chunk(self,

logging.info('Launching subprocess "%s"', ' '.join(cmd))
process = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
with utils.timing(
f'Jackhmmer ({os.path.basename(database_path)}) query'):
_, stderr = process.communicate()
Expand Down
2 changes: 1 addition & 1 deletion alphafold/data/tools/kalign.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def align(self, sequences: Sequence[str]) -> str:
]

logging.info('Launching subprocess "%s"', ' '.join(cmd))
process = subprocess.Popen(cmd, stdout=subprocess.PIPE,
process = subprocess.Popen(cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)

with utils.timing('Kalign query'):
Expand Down