Skip to content

Commit 351a636

Browse files
committed
linting
1 parent 02fb399 commit 351a636

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: iss/bam.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def to_model(bam_path, output):
206206
ins_r, del_r = modeller.indel_matrix_to_choices(indel_matrix_r, read_length)
207207

208208
logger.info("Calculating insert size distribution")
209-
# insert_size = int(np.mean(insert_size_dist))
209+
# insert_size = int(np.mean(insert_size_dist))
210210
hist_insert_size = modeller.insert_size(template_length_dist, read_length)
211211

212212
write_to_file(

Diff for: iss/modeller.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def insert_size(template_length_dist, read_length):
1414
distributin. Uses 1D kernel density estimation.
1515
1616
Args:
17-
insert_size_distribution (list): list of insert sizes from aligned
18-
read pairs
17+
template_length_dist (list): List of template lengths from bam file.
18+
read_length (int): The length of the read.
1919
2020
Returns:
2121
1darray: a cumulative density function
@@ -28,7 +28,7 @@ def insert_size(template_length_dist, read_length):
2828
max_mask = tld < 2000
2929
tld = tld[max_mask]
3030

31-
isd = tld - (2* read_length) # convert to insert size
31+
isd = tld - (2 * read_length) # convert to insert size
3232

3333
kde = stats.gaussian_kde(isd, bw_method=0.2 / np.std(isd, ddof=1))
3434
x_grid = np.linspace(min(isd), max(isd), 2000)

0 commit comments

Comments
 (0)