Skip to content

Commit

Permalink
update igv
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Booher committed Feb 8, 2022
1 parent b1f5fe7 commit ca87465
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion igv
Submodule igv updated 451 files
29 changes: 19 additions & 10 deletions scanfoldmenu.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/main/java/org/broad/igv/track/TrackLoader.java b/src/main/java/org/broad/igv/track/TrackLoader.java
index ff9de8abc..ed1924f90 100644
index f09591e39..f87d019b6 100644
--- a/src/main/java/org/broad/igv/track/TrackLoader.java
+++ b/src/main/java/org/broad/igv/track/TrackLoader.java
@@ -75,6 +75,8 @@ import org.broad.igv.renderer.MutationRenderer;
@@ -76,6 +76,8 @@ import org.broad.igv.renderer.MutationRenderer;
import org.broad.igv.renderer.PointsRenderer;
import org.broad.igv.sam.*;
import org.broad.igv.sam.reader.IndexNotFoundException;
Expand All @@ -11,7 +11,7 @@ index ff9de8abc..ed1924f90 100644
import org.broad.igv.tdf.TDFDataSource;
import org.broad.igv.tdf.TDFReader;
import org.broad.igv.ui.IGV;
@@ -210,6 +212,10 @@ public class TrackLoader {
@@ -207,6 +209,10 @@ public class TrackLoader {
loadMutFile(locator, newTracks, genome); // Must be tried before ".maf" test below
} else if (format.equals("maf")) {
loadMultipleAlignmentTrack(locator, newTracks, genome);
Expand All @@ -23,10 +23,10 @@ index ff9de8abc..ed1924f90 100644
//if a url, try htsget
boolean isHtsget = tryHtsget(locator, newTracks, genome);
diff --git a/src/main/java/org/broad/igv/ui/IGVMenuBar.java b/src/main/java/org/broad/igv/ui/IGVMenuBar.java
index 3b6dd0880..594f2208e 100644
index 4d46a5a26..2c7ec796d 100644
--- a/src/main/java/org/broad/igv/ui/IGVMenuBar.java
+++ b/src/main/java/org/broad/igv/ui/IGVMenuBar.java
@@ -60,6 +60,10 @@ import org.broad.igv.util.HttpUtils;
@@ -62,6 +62,10 @@ import org.broad.igv.util.HttpUtils;
import org.broad.igv.util.LongRunningTask;
import org.broad.igv.util.blat.BlatClient;
import org.broad.igv.util.encode.EncodeFileBrowser;
Expand All @@ -37,15 +37,24 @@ index 3b6dd0880..594f2208e 100644

import javax.swing.*;
import javax.swing.event.MenuEvent;
@@ -171,6 +175,7 @@ public class IGVMenuBar extends JMenuBar implements IGVEventObserver {
@@ -173,6 +177,7 @@ public class IGVMenuBar extends JMenuBar implements IGVEventObserver {
menus.add(createViewMenu());
menus.add(createTracksMenu());
menus.add(createRegionsMenu());
+ menus.add(createScanfoldMenu());

refreshToolsMenu();
menus.add(toolsMenu);
@@ -1224,4 +1229,46 @@ public class IGVMenuBar extends JMenuBar implements IGVEventObserver {
@@ -437,7 +442,7 @@ public class IGVMenuBar extends JMenuBar implements IGVEventObserver {
menuAction.setToolTipText("Load a FASTA, .json, or .genome file...");
menuItems.add(MenuAndToolbarUtils.createMenuItem(menuAction));

- // Download genome from server
+ // Download genome from server
menuAction = new MenuAction("Select Hosted Genome...", null) {
@Override
public void actionPerformed(ActionEvent event) {
@@ -1221,4 +1226,46 @@ public class IGVMenuBar extends JMenuBar implements IGVEventObserver {

return menuItem;
}
Expand All @@ -60,7 +69,7 @@ index 3b6dd0880..594f2208e 100644
+ String chr = defaultFrame.getChrName();
+ int start = (int) defaultFrame.getOrigin();
+ int end = (int) defaultFrame.getEnd();
+ String sequence = ScanFoldGui.extractSequence(igv.getGenomeManager().getCurrentGenome(), chr, start, end, Strand.NONE);
+ String sequence = ScanFoldGui.extractSequence(GenomeManager.getInstance().getCurrentGenome(), chr, start, end, Strand.NONE);
+ ScanFoldGui.launch(chr, start, sequence, false, "main");
+ }
+ };
Expand All @@ -72,7 +81,7 @@ index 3b6dd0880..594f2208e 100644
+ String chr = defaultFrame.getChrName();
+ int start = (int) defaultFrame.getOrigin();
+ int end = (int) defaultFrame.getEnd();
+ String sequence = RNAFoldGui.extractSequence(igv.getGenomeManager().getCurrentGenome(), chr, start, end, Strand.NONE);
+ String sequence = RNAFoldGui.extractSequence(GenomeManager.getInstance().getCurrentGenome(), chr, start, end, Strand.NONE);
+ RNAFoldGui.launch(chr, start, sequence, false, "main");
+ }
+ };
Expand All @@ -84,7 +93,7 @@ index 3b6dd0880..594f2208e 100644
+ String chr = defaultFrame.getChrName();
+ int start = (int) defaultFrame.getOrigin();
+ int end = (int) defaultFrame.getEnd();
+ String sequence = RNAStructureGui.extractSequence(igv.getGenomeManager().getCurrentGenome(), chr, start, end, Strand.NONE);
+ String sequence = RNAStructureGui.extractSequence(GenomeManager.getInstance().getCurrentGenome(), chr, start, end, Strand.NONE);
+ RNAStructureGui.launch(chr, start, sequence, false, "main");
+ }
+ };
Expand Down

0 comments on commit ca87465

Please sign in to comment.