Skip to content

Commit 9eeffa8

Browse files
committed
chore: allow a lesser selenium
1 parent a0f7b31 commit 9eeffa8

File tree

7 files changed

+29
-30
lines changed

7 files changed

+29
-30
lines changed

python/poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ google-api-python-client = "~2.151"
3636
google-auth-httplib2 = "~0.2"
3737
google-auth-oauthlib = "~1.2.1"
3838
lxml = "~5.3"
39-
selenium = "~4.26"
39+
selenium = ">=3.141"
4040
types-beautifulsoup4 = "~4.12"
4141

4242
[tool.poetry.group.dev.dependencies]

scala/seshat/src/io/cvbio/seshat/SeshatMerge.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ object SeshatMerge {
6565
val Delimiter: Char = '\t'
6666

6767
/** Ignore these invariant fields in the annotation file, as they are copy-pasted from the source VCF. */
68-
val FieldsToIgnore: Set[String] = {
68+
private[seshat] val FieldsToIgnore: Set[String] = {
6969
Set("Sample", "CHROM", "POS", "ID", "REF", "ALT", "QUAL", "FILTER", "INFO", "FORMAT")
7070
}
7171

scala/seshat/src/io/cvbio/seshat/SeshatRoundTrip.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object SeshatRoundTrip {
6666
val SeshatInfix: String = ".seshat"
6767

6868
/** Find a Seshat annotation file in a directory, by type. Annotation files have a date-time-stamp in their filename. */
69-
def findAnnotations(dir: DirPath, kind: SeshatAnnotationType): Option[FilePath] = {
69+
private[seshat] def findAnnotations(dir: DirPath, kind: SeshatAnnotationType): Option[FilePath] = {
7070
val pattern: Regex = s".*${kind.entryName}-\\d{8}_\\d{6}_\\d{6}\\.tsv".r
7171
Files.walk(dir, 1).iterator.find(path => pattern.matches(PathUtil.basename(path, trimExt = false)))
7272
}
@@ -78,7 +78,7 @@ object SeshatRoundTrip {
7878
object SeshatAnnotationType extends Enum[SeshatAnnotationType] {
7979

8080
/** All values of this enumeration. */
81-
val values = findValues
81+
val values: IndexedSeq[SeshatAnnotationType] = findValues
8282

8383
/** The short-form annotations. */
8484
case object Short extends SeshatAnnotationType

scala/seshat/src/io/cvbio/seshat/SeshatUpload.scala renamed to scala/seshat/src/io/cvbio/seshat/SeshatUploadVcf.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SeshatUploadVcf(
5151
)
5252
}
5353

54-
/** The argument list for the [[SeshatUpload]] script. */
54+
/** The argument list for the [[SeshatUploadVcf]] script. */
5555
private[seshat] def scriptArgs(input: PathToVcf): Seq[String] = {
5656
val buffer = new ListBuffer[String]()
5757
buffer.addAll(Seq("--input", input.toString))
@@ -112,7 +112,7 @@ object SeshatUploadVcf {
112112
object SeshatAssembly extends Enum[SeshatAssembly] {
113113

114114
/** All values of this enumeration. */
115-
val values = findValues
115+
val values: IndexedSeq[SeshatAssembly] = findValues
116116

117117
/** The assembly hg17. */
118118
case object Hg17 extends SeshatAssembly

scala/seshat/src/io/cvbio/seshat/VcfUtil.scala

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ object VcfUtil {
2929
)
3030

3131
/** Some characters have special meanings in VCF files. When they appear in strings for use as an INFO/FORMAT key
32-
* or value they must be encoded. These functions will perform this encoding/decoding for all characters as outlined
33-
* in VCF 4.3 §1.2. This function is not to be used on a string representation of a list of INFO/FORMAT values.
34-
* URL encoding is similar, but conflates Space (" ") and Plus ("+").
35-
* Spaces are allowed in VCF v4.3, but this isn't yet supported by HTSJDK so they are also encoded.
36-
*
37-
* In the case of encoding a list of INFO/FORMAT values encoded as a string, you must first split the string on the
38-
* comma-delimiter, encode, and then re-join the string:
39-
*
40-
* {{{
41-
* "1.0 2.0,3.0 4.0,5.0".split(',').map(VcfUtil.fieldEncode).mkString(",")
42-
* }}}
43-
*
44-
* Which will return:
45-
*
46-
* {{{
47-
* "1.0%202.0,3.0%204.0,5.0"
48-
* }}}
49-
*/
32+
* or value they must be encoded. These functions will perform this encoding/decoding for all characters as outlined
33+
* in VCF 4.3 §1.2. This function is not to be used on a string representation of a list of INFO/FORMAT values.
34+
* URL encoding is similar, but conflates Space (" ") and Plus ("+").
35+
* Spaces are allowed in VCF v4.3, but this isn't yet supported by HTSJDK so they are also encoded.
36+
*
37+
* In the case of encoding a list of INFO/FORMAT values encoded as a string, you must first split the string on the
38+
* comma-delimiter, encode, and then re-join the string:
39+
*
40+
* {{{
41+
* "1.0 2.0,3.0 4.0,5.0".split(',').map(VcfUtil.fieldEncode).mkString(",")
42+
* }}}
43+
*
44+
* Which will return:
45+
*
46+
* {{{
47+
* "1.0%202.0,3.0%204.0,5.0"
48+
* }}}
49+
*/
5050
private[seshat] def fieldEncode(string: String): String = string.map(c => SpecialCharCodec.getOrElse(c, c.toString)).mkString
5151
}

scala/seshat/test/src/io/cvbio/seshat/SeshatMergeTest.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import com.fulcrumgenomics.util.Io.makeTempFile
88
import com.fulcrumgenomics.vcf.api.{AlleleSet, Genotype, Variant, VcfSource}
99
import io.cvbio.UnitSpec
1010
import io.cvbio.seshat.SeshatMerge._
11-
import io.cvbio.seshat.VcfUtil
12-
import io.cvbio.seshat.VcfUtil.{VcfExtension, TextExtension}
11+
import io.cvbio.seshat.VcfUtil.{TextExtension, VcfExtension}
1312

1413
import scala.util.Properties.lineSeparator
1514

0 commit comments

Comments
 (0)